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
This commit is contained in:
Dan Sandler
2015-07-30 22:32:54 -04:00
parent 74a0744ec1
commit 706274f7ff

View File

@@ -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)