Explicit GridLayout alignment to fix warnings.
Also show lockdown VPN dialog whenever relaunched. Change-Id: Ib8aecbd4a7f9d61906f65fee39f1e819c79aabb4
This commit is contained in:
@@ -91,12 +91,6 @@ 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"));
|
||||
@@ -162,6 +156,12 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
final boolean pickLockdown = getActivity()
|
||||
.getIntent().getBooleanExtra(EXTRA_PICK_LOCKDOWN, false);
|
||||
if (pickLockdown) {
|
||||
LockdownConfigFragment.show(this);
|
||||
}
|
||||
|
||||
// Check KeyStore here, so others do not need to deal with it.
|
||||
if (!mKeyStore.isUnlocked()) {
|
||||
if (!mUnlocking) {
|
||||
|
Reference in New Issue
Block a user