Migrate package notification controls to AppOps.

We still show the [X] Show Notifications box in
InstalledAppDetails for now, however the information should
be mostly in sync with the AppOps screen. ("Mostly" because
there's no way to register for changes to AppOp modes at
present.)

Change-Id: Ia5cdda26c140aed8ee7329caaeedac04b8cbd8f1
This commit is contained in:
Daniel Sandler
2013-01-30 14:03:58 -05:00
parent f6ab51cd67
commit df3f6d6c47
4 changed files with 7 additions and 4 deletions

View File

@@ -1129,7 +1129,7 @@ public class ManageApplications extends Fragment implements
ApplicationInfo app = apps.get(i);
try {
if (DEBUG) Log.v(TAG, "Enabling notifications: " + app.packageName);
nm.setNotificationsEnabledForPackage(app.packageName, true);
nm.setNotificationsEnabledForPackage(app.packageName, app.uid, true);
} catch (android.os.RemoteException ex) {
}
if (!app.enabled) {