Explicit GridLayout alignment to fix warnings.

Also show lockdown VPN dialog whenever relaunched.

Change-Id: Ib8aecbd4a7f9d61906f65fee39f1e819c79aabb4
This commit is contained in:
Jeff Sharkey
2013-02-21 15:31:09 -08:00
parent 8b78299d94
commit 1a55f95d45
7 changed files with 16 additions and 13 deletions

View File

@@ -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) {