am f8a3a17c
: Merge "Don\'t check states when mActiveProfile is present" into honeycomb-mr1
* commit 'f8a3a17c1e8cb71342b63cc08388883dedeb3180': Don't check states when mActiveProfile is present
This commit is contained in:
@@ -221,7 +221,14 @@ public class VpnSettings extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!mConnectDialogShowing) {
|
if (!mConnectDialogShowing) {
|
||||||
|
// If mActiveProfile is not null but it's in IDLE state, then a
|
||||||
|
// retry dialog must be showing now as the previous connection
|
||||||
|
// attempt failed. In this case, don't call checkVpnConnectionStatus()
|
||||||
|
// as it will clean up mActiveProfile due to the IDLE state.
|
||||||
|
if ((mActiveProfile == null)
|
||||||
|
|| (mActiveProfile.getState() != VpnState.IDLE)) {
|
||||||
checkVpnConnectionStatus();
|
checkVpnConnectionStatus();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Dismiss the connect dialog in case there is another instance
|
// Dismiss the connect dialog in case there is another instance
|
||||||
// trying to operate a vpn connection.
|
// trying to operate a vpn connection.
|
||||||
|
Reference in New Issue
Block a user