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

Commit 3fc7bfd9 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "Fix bug #21025020 Stability: JCs in Settings: Caused by:...

Merge "Fix bug #21025020 Stability: JCs in Settings: Caused by: java.lang.NullPointerException" into mnc-dev
parents fd210786 ae35e0c0
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -284,13 +284,16 @@ public class InstalledAppDetails extends AppInfoBase
        mBatteryPreference.setOnPreferenceClickListener(this);

        mLaunchPreference = findPreference(KEY_LAUNCH);
        if ((mAppEntry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) {
            mLaunchPreference.setEnabled(false);
        } else if (!mAppEntry.info.enabled) {
        if (mAppEntry.info != null) {
            if ((mAppEntry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0 ||
                    !mAppEntry.info.enabled) {
                mLaunchPreference.setEnabled(false);
            } else {
                mLaunchPreference.setOnPreferenceClickListener(this);
            }
        } else {
            mLaunchPreference.setEnabled(false);
        }
    }

    private void handleHeader() {