VPN connection restarts in Dashboard Activity
The VPN connection is killed and restarted in at least two cases within the Dashboard Activity:
- Clicking the "Configure" button of the system VPN connection notification dialog, arriving on Dashboard
- Rotating the screen while on Dashboard
The VPN connection is not restarted when launching the Dashboard Activity through the launcher icon, or when returning to the Activity from the recent apps menu.
I believe this behavior has to do with the PendingIntent given to the system UI for the VPN notification and the calls that happen in the Dashboard class when the screen is rotated (onCreate(), or onResume() ?), and the relationship to how the View is built / the calls we make, either to bind the OpenVpnService, or the switch to toggle EIP.
(from redmine: created on 2013-07-06, closed on 2013-07-08)