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

Commit c66eb698 authored by Alexandra Gherghina's avatar Alexandra Gherghina Committed by Android (Google) Code Review
Browse files

Merge "Disable app notifications checkbox for uninstalled apps" into lmp-mr1-dev

parents ee70c699 51ea7cf4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -420,6 +420,9 @@ public class InstalledAppDetails extends Fragment
        mNotificationSwitch.setChecked(enabled);
        if (Utils.isSystemPackage(mPm, mPackageInfo)) {
            mNotificationSwitch.setEnabled(false);
        } else if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0) {
            // App is not installed on the current user
            mNotificationSwitch.setEnabled(false);
        } else {
            mNotificationSwitch.setEnabled(true);
            mNotificationSwitch.setOnCheckedChangeListener(this);