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

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

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

parents 91fcd1cb d156c876
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;
        }
    }