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

Commit 4d3a2c4b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Override isRestricted for preventing unexpected resource loading" into sc-dev

parents 2cd9c512 0de34e9d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -705,6 +705,14 @@ public class RemoteViews implements Parcelable, Filter {
        public String getPackageName() {
            return mContextForResources.getPackageName();
        }

        @Override
        public boolean isRestricted() {
            // Override isRestricted and direct to resource's implementation. The isRestricted is
            // used for determining the risky resources loading, e.g. fonts, thus direct to context
            // for resource.
            return mContextForResources.isRestricted();
        }
    }

    private class SetEmptyView extends Action {