Don't throw an IllegalStateException EipStatus.setEipLevel
For some reason (that should be investigated) openvpn can get an ConnectionStatus LEVEL_VPNPAUSED
which bitmask doesn't supports. There are several crash reports on google play console because we're throwing an IllegalStateException here:
private void setEipLevel(ConnectionStatus level) {
switch (level) {
case LEVEL_CONNECTED:
currentEipLevel = EipLevel.CONNECTED;
break;
case LEVEL_VPNPAUSED:
throw new IllegalStateException("Ics-Openvpn's VPNPAUSED state is not supported by Bitmask");
case LEVEL_CONNECTING_SERVER_REPLIED:
we should fix the reason why we get into that state and could think about a more graceful error handling.
Edited by cyberta