Update launcher preview icons on themed icon update

Flag: NA
Bug: 300257098
Test: manually verified
Change-Id: Ic34cdce3021d8fcc97c153671bd1f05013933b6d
This commit is contained in:
Catherine Liang
2023-11-01 08:59:09 +08:00
parent 0f7a74a219
commit d64230f449
3 changed files with 51 additions and 0 deletions

View File

@@ -169,6 +169,9 @@ public class GridCustomizationsProvider extends ContentProvider {
LauncherPrefs.get(getContext())
.put(THEMED_ICONS, values.getAsBoolean(BOOLEAN_VALUE));
getContext().getContentResolver().notifyChange(uri, null);
mActivePreviews.values().forEach(observer ->
observer.renderer.refreshIcons()
);
return 1;
}
default: