android: Don't hide the notification if we are connecting to a profile

In particular, if we are reconnecting after an error.
This commit is contained in:
Tobias Brunner
2018-07-03 11:31:38 +02:00
parent 68afdd3464
commit bc52868173
@@ -331,7 +331,10 @@ public class CharonVpnService extends VpnService implements Runnable, VpnStateSe
deinitializeCharon();
Log.i(TAG, "charon stopped");
mCurrentProfile = null;
removeNotification();
if (mNextProfile == null)
{ /* don't remove the notification if we are connecting to a different profile */
removeNotification();
}
}
}
}