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

Commit 068903a9 authored by liulvping's avatar liulvping Committed by Pierre Barbier de Reuille
Browse files

DO NOT MERGE

Use remote context to inflate layout for RemoteView

Bug: 205749786
Test: atest CtsAppWidgetTestCases
Test: atest CtsWidgetTestCases:RemoteViewsTest

Change-Id: I6d5772f0642e8a56e17ccbe7fddae46d844897a0
parent db5da1ce
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -552,6 +552,11 @@ public class AppWidgetHostView extends FrameLayout {
                inflateAsync(rvToApply);
                return;
            }

            // Prepare a local reference to the remote Context so we're ready to
            // inflate any requested LayoutParams
            mRemoteContext = getRemoteContext();

            int layoutId = rvToApply.getLayoutId();
            if (rvToApply.canRecycleView(mView)) {
                try {