Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e3a0942 authored by Dan Sandler's avatar Dan Sandler Committed by The Android Automerger
Browse files

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
parent 32a90666
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)