diff options
author | Jason Monk <jmonk@google.com> | 2015-05-13 12:30:34 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-05-13 12:30:34 -0400 |
commit | 02453f605b3ccd484bbce3e8b00094253b38f718 (patch) | |
tree | 2143afbffe732f71eb4d18efa38928408701d319 /packages/SettingsLib | |
parent | cf304fb35c2086601178858e307d3dda36dbbff7 (diff) | |
download | frameworks_base-02453f605b3ccd484bbce3e8b00094253b38f718.zip frameworks_base-02453f605b3ccd484bbce3e8b00094253b38f718.tar.gz frameworks_base-02453f605b3ccd484bbce3e8b00094253b38f718.tar.bz2 |
SettingsLib: Track permission's packageName
Bug: 20269176
Change-Id: If07051985f3e8b6223cba4289d6cd29d94ebb0cd
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java b/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java index 60b5ba5..2606af2 100644 --- a/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java +++ b/packages/SettingsLib/src/com/android/settingslib/applications/PermissionsInfo.java @@ -82,6 +82,7 @@ public class PermissionsInfo { // TODO: Add default permission icon. group.icon = info.icon != 0 ? info.loadIcon(mPm) : new ShapeDrawable(); group.name = info.name; + group.packageName = info.packageName; group.label = info.loadLabel(mPm).toString(); mGroups.add(group); mGroupLookup.put(permission, group); @@ -105,6 +106,7 @@ public class PermissionsInfo { // TODO: Add default permission icon. group.icon = groupInfo.icon != 0 ? groupInfo.loadIcon(mPm) : new ShapeDrawable(); group.name = groupInfo.name; + group.packageName = groupInfo.packageName; group.label = groupInfo.loadLabel(mPm).toString(); synchronized (mGroups) { mGroups.add(group); @@ -172,6 +174,7 @@ public class PermissionsInfo { public final List<String> possibleApps = new ArrayList<>(); public final List<String> grantedApps = new ArrayList<>(); public String name; + public String packageName; public String label; public Drawable icon; |