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

Commit c68bce1d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Restore the creation of the remote context in sync inflation." into sc-v2-dev am: 184c9eeb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15951444

Change-Id: I46a4619213bb58d1084824ddbc98bdb6b671aa5f
parents a6c53643 184c9eeb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -552,6 +552,10 @@ 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 {
@@ -727,6 +731,9 @@ public class AppWidgetHostView extends FrameLayout {
        } catch (NameNotFoundException e) {
            Log.e(TAG, "Package name " +  mInfo.providerInfo.packageName + " not found");
            return mContext;
        } catch (NullPointerException e) {
            Log.e(TAG, "Error trying to create the remote context.", e);
            return mContext;
        }
    }