IconCache should refresh on OTAs
Background: PackageInfo may not have changed but when upgrading from N to O, the icon cache need to refresh in order to show Adaptive icons. Bug: 65062494 Change-Id: If3bf579c3dd035fe8d4e10c5741532fdb2a9d6fe
This commit is contained in:
@@ -2,6 +2,7 @@ package com.android.launcher3;
|
||||
|
||||
import android.content.pm.LauncherActivityInfo;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
@@ -17,7 +18,7 @@ public class IconProvider {
|
||||
}
|
||||
|
||||
public void updateSystemStateString() {
|
||||
mSystemState = Locale.getDefault().toString();
|
||||
mSystemState = Locale.getDefault().toString() + "," + Build.VERSION.SDK_INT;
|
||||
}
|
||||
|
||||
public String getIconSystemState(String packageName) {
|
||||
|
||||
Reference in New Issue
Block a user