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

Commit 41b87460 authored by Pierre Barbier de Reuille's avatar Pierre Barbier de Reuille Committed by Android (Google) Code Review
Browse files

Merge "Correct invalidation of layout when new color resources are provided." into sc-dev

parents 58050d15 4554bcd1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -849,6 +849,7 @@ public class AppWidgetHostView extends FrameLayout {
    public void setColorResources(@NonNull SparseIntArray colorMapping) {
        mColorResources = RemoteViews.ColorResources.create(mContext, colorMapping);
        mLayoutId = -1;
        mViewMode = VIEW_MODE_NOINIT;
        reapplyLastRemoteViews();
    }

@@ -863,6 +864,7 @@ public class AppWidgetHostView extends FrameLayout {
        if (mColorResources != null) {
            mColorResources = null;
            mLayoutId = -1;
            mViewMode = VIEW_MODE_NOINIT;
            reapplyLastRemoteViews();
        }
    }