SetupWizard: Catch exceptions reading key disabler
Change-Id: Ib86e71ec9358db88ff4bcddd9cf26e2dd5b0b817
This commit is contained in:
parent
a912fa829f
commit
1e23a8f801
@ -152,6 +152,14 @@ public class CyanogenSettingsPage extends SetupPage {
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isKeyDisablerActive() {
|
||||
try {
|
||||
return KeyDisabler.isActive();
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean hideWhisperPush(Context context) {
|
||||
final int playServicesAvailable = GooglePlayServicesUtil
|
||||
.isGooglePlayServicesAvailable(context);
|
||||
@ -243,7 +251,7 @@ public class CyanogenSettingsPage extends SetupPage {
|
||||
mNavKeysRow.setVisibility(View.GONE);
|
||||
} else {
|
||||
boolean navKeysDisabled =
|
||||
KeyDisabler.isActive();
|
||||
isKeyDisablerActive();
|
||||
mNavKeys.setChecked(navKeysDisabled);
|
||||
}
|
||||
mSecureSmsRow = mRootView.findViewById(R.id.secure_sms);
|
||||
|
Loading…
Reference in New Issue
Block a user