diff options
| author | 2016-02-18 15:44:11 +0000 | |
|---|---|---|
| committer | 2016-02-18 15:44:13 +0000 | |
| commit | c1ea64ced50e731b7ce51ea92630832a964a19ea (patch) | |
| tree | 9cff08aa44d70ae80e0637a936afd0544f387693 | |
| parent | 4bb2de255733d48cbb21587fa4ab0eb4eacee943 (diff) | |
| parent | f5df55302911d6122f742a44d6685ebb5ec5b78c (diff) | |
Merge "Get applicationinfo as user." into nyc-dev
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationRecord.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationRecord.java b/services/core/java/com/android/server/notification/NotificationRecord.java index 12c70a3fa83d..2ca5534b3310 100644 --- a/services/core/java/com/android/server/notification/NotificationRecord.java +++ b/services/core/java/com/android/server/notification/NotificationRecord.java @@ -149,8 +149,9 @@ public final class NotificationRecord { } try { - final ApplicationInfo applicationInfo = mContext.getPackageManager().getApplicationInfo( - sbn.getPackageName(), 0); + final ApplicationInfo applicationInfo = + mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(), + 0, sbn.getUser().getIdentifier()); if (applicationInfo.targetSdkVersion < Build.VERSION_CODES.N) { if (isNoisy) { if (importance >= IMPORTANCE_HIGH) { |