summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-01-30 13:57:27 -0800
committercretin45 <cretin45@gmail.com>2015-01-30 13:57:27 -0800
commit1e23a8f80119726aa0bf0cb576e5c932db9c7e6c (patch)
tree051e2ddd084754c1bc98010d3a8378d2fb65ae86 /src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
parenta912fa829fd60b9d1fb3e10a09516d0b5d69abb9 (diff)
downloadpackages_apps_SetupWizard-1e23a8f80119726aa0bf0cb576e5c932db9c7e6c.zip
packages_apps_SetupWizard-1e23a8f80119726aa0bf0cb576e5c932db9c7e6c.tar.gz
packages_apps_SetupWizard-1e23a8f80119726aa0bf0cb576e5c932db9c7e6c.tar.bz2
SetupWizard: Catch exceptions reading key disabler
Change-Id: Ib86e71ec9358db88ff4bcddd9cf26e2dd5b0b817
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
index ab7c07f..8128968 100644
--- a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java
@@ -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);