Merge "Correct invalidation of layout when new color resources are provided." into sc-dev am: 41b8746083
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13815799 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iab29f5813f2b16f1b6dd8c44957853ecfb59c1cd
This commit is contained in:
committed by
Automerger Merge Worker
commit
2b346745d2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user