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:
+3
@@ -331,10 +331,13 @@ public class CharonVpnService extends VpnService implements Runnable, VpnStateSe
|
|||||||
deinitializeCharon();
|
deinitializeCharon();
|
||||||
Log.i(TAG, "charon stopped");
|
Log.i(TAG, "charon stopped");
|
||||||
mCurrentProfile = null;
|
mCurrentProfile = null;
|
||||||
|
if (mNextProfile == null)
|
||||||
|
{ /* don't remove the notification if we are connecting to a different profile */
|
||||||
removeNotification();
|
removeNotification();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a permanent notification while we are connected to avoid the service getting killed by
|
* Add a permanent notification while we are connected to avoid the service getting killed by
|
||||||
|
|||||||
Reference in New Issue
Block a user