Improve notification UI for lockdown VPN.
Bug: 7064111 Change-Id: I951c1c116d2e0e22d1b32194d38f1431e806cbca
This commit is contained in:
@@ -66,6 +66,8 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
||||
|
||||
private static final String TAG_LOCKDOWN = "lockdown";
|
||||
|
||||
private static final String EXTRA_PICK_LOCKDOWN = "android.net.vpn.PICK_LOCKDOWN";
|
||||
|
||||
// TODO: migrate to using DialogFragment when editing
|
||||
|
||||
private final IConnectivityManager mService = IConnectivityManager.Stub
|
||||
@@ -89,6 +91,12 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
||||
setHasOptionsMenu(true);
|
||||
addPreferencesFromResource(R.xml.vpn_settings2);
|
||||
|
||||
final boolean pickLockdown = getActivity()
|
||||
.getIntent().getBooleanExtra(EXTRA_PICK_LOCKDOWN, false);
|
||||
if (pickLockdown) {
|
||||
LockdownConfigFragment.show(this);
|
||||
}
|
||||
|
||||
if (savedState != null) {
|
||||
VpnProfile profile = VpnProfile.decode(savedState.getString("VpnKey"),
|
||||
savedState.getByteArray("VpnProfile"));
|
||||
|
Reference in New Issue
Block a user