summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2017-08-28 21:27:00 (GMT)
committerHyunyoung Song <hyunyoungs@google.com>2017-08-28 22:58:40 (GMT)
commit3152827d3b81b7feb3e48f957376ed5794954175 (patch)
treed2383667e76c73fc0c6b52c578a546ac011a137d
parent9b745a82bf5cf8bf9383b63179d0a750e9ab9ab6 (diff)
downloadandroid_packages_apps_Trebuchet-3152827d3b81b7feb3e48f957376ed5794954175.zip
android_packages_apps_Trebuchet-3152827d3b81b7feb3e48f957376ed5794954175.tar.gz
android_packages_apps_Trebuchet-3152827d3b81b7feb3e48f957376ed5794954175.tar.bz2
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
-rw-r--r--src/com/android/launcher3/IconProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/IconProvider.java b/src/com/android/launcher3/IconProvider.java
index 6872515..4dee2b5 100644
--- a/src/com/android/launcher3/IconProvider.java
+++ b/src/com/android/launcher3/IconProvider.java
@@ -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) {