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

Commit 39c49f8d authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

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

parents 215fe701 ba987ca9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -593,6 +593,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 {