Merge "Fix app notification toggle" into tm-dev

This commit is contained in:
Julia Reynolds
2022-03-08 21:11:47 +00:00
committed by Android (Google) Code Review

View File

@@ -362,7 +362,8 @@ abstract public class NotificationSettings extends DashboardFragment {
final String p = packages[i];
if (pkg.equals(p)) {
try {
return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES);
return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES
| PackageManager.GET_PERMISSIONS);
} catch (NameNotFoundException e) {
Log.w(TAG, "Failed to load package " + pkg, e);
}