mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Icon cache fix
Lineage overhauled icons and old ones are still showing Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
ea20b30db7
commit
0895190ffa
@ -0,0 +1,22 @@
|
||||
From 5b67eac60d807e6b159a334577296e3c606e275f Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Micay <danielmicay@gmail.com>
|
||||
Date: Tue, 2 Nov 2021 14:44:13 -0400
|
||||
Subject: [PATCH] invalidate icon cache between OS releases
|
||||
|
||||
---
|
||||
.../src/com/android/launcher3/icons/cache/BaseIconCache.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java
|
||||
index 7c4624d..c2b8eeb 100644
|
||||
--- a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java
|
||||
+++ b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java
|
||||
@@ -229,7 +229,7 @@ public IconCacheUpdateHandler getUpdateHandler() {
|
||||
*/
|
||||
private void updateSystemState() {
|
||||
mLocaleList = mContext.getResources().getConfiguration().getLocales();
|
||||
- mSystemState = mLocaleList.toLanguageTags() + "," + Build.VERSION.SDK_INT;
|
||||
+ mSystemState = mLocaleList.toLanguageTags() + "," + Build.VERSION.INCREMENTAL;
|
||||
}
|
||||
|
||||
protected String getIconSystemState(String packageName) {
|
@ -171,6 +171,10 @@ if enterAndClear "frameworks/ex"; then
|
||||
if [ "$DOS_GRAPHENE_CONSTIFY" = true ]; then applyPatch "$DOS_PATCHES/android_frameworks_ex/0001-constify_JNINativeMethod.patch"; fi; #Constify JNINativeMethod tables (GrapheneOS)
|
||||
fi;
|
||||
|
||||
if enterAndClear "frameworks/libs/systemui"; then
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_libs_systemui/0001-Icon_Cache.patch"; #Invalidate icon cache between OS releases (GrapheneOS)
|
||||
fi;
|
||||
|
||||
if enterAndClear "frameworks/native"; then
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_native/0001-Sensors_Permission.patch"; #Require OTHER_SENSORS permission for sensors (GrapheneOS)
|
||||
fi;
|
||||
|
Loading…
Reference in New Issue
Block a user