diff options
author | Dan Sandler <dsandler@android.com> | 2015-07-30 22:32:54 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2015-07-30 22:32:54 -0400 |
commit | 706274f7ff9e1e7eb01f93ae80f7189de7fe6694 (patch) | |
tree | 582508ca1db8bfb345c5db0a77086b59a69b4b9d /core/java/android/widget/RemoteViews.java | |
parent | 74a0744ec19de54096638978bfe1eccfe2ed4e01 (diff) | |
download | frameworks_base-706274f7ff9e1e7eb01f93ae80f7189de7fe6694.zip frameworks_base-706274f7ff9e1e7eb01f93ae80f7189de7fe6694.tar.gz frameworks_base-706274f7ff9e1e7eb01f93ae80f7189de7fe6694.tar.bz2 |
Make the RemoteViews context safe for Icons.
Icon needs the RemoteViews' internal context to reflect not
just the Resources of the originating application, but its
package name as well.
Bug: 22840771
Bug: 22852700
Change-Id: I1164cd38d99283982b00daadcf927c7cf63539b3
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
-rw-r--r-- | core/java/android/widget/RemoteViews.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index d158313..7ca3339 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -2746,6 +2746,10 @@ public class RemoteViews implements Parcelable, Filter { public Resources.Theme getTheme() { return contextForResources.getTheme(); } + @Override + public String getPackageName() { + return contextForResources.getPackageName(); + } }; LayoutInflater inflater = (LayoutInflater) |