Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e23a8f8 authored by cretin45's avatar cretin45
Browse files

SetupWizard: Catch exceptions reading key disabler

Change-Id: Ib86e71ec9358db88ff4bcddd9cf26e2dd5b0b817
parent a912fa82
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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);