Skip to content

Runtime Errors

Peter Yoon edited this page Jan 22, 2017 · 1 revision

Settings Crash

Try applying following patch under frameworks/base.

packages/SettingsLib/src/com/android/settingslib/drawer/SettingsDrawerActivity.java
@@ line 265 @@
    public void showMenuIcon() {
+       if (getActionBar() == null) return;
        mShowingMenu = true;
@@ line 324 @@
    for (int i = userHandles.size() - 1; i >= 0; i--) {
-       if (mUserManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) {
+       if (mUserManager != null && mUserManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) {
            if (DEBUG) {
Clone this wiki locally