Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75248924 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing shortcut icons getting cleared from cache on every restart

Bug: 238937089
Test: Verified that there are no cache updated after this change
Change-Id: Ib8abdcd49ce76a70fc3ecb9a10e4bcff7ae9ce32
parent 47ed514b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -180,7 +180,8 @@ public class IconCacheUpdateHandler {
                long updateTime = c.getLong(indexLastUpdate);
                int version = c.getInt(indexVersion);
                T app = componentMap.remove(component);
                if (version == info.versionCode && updateTime == info.lastUpdateTime
                if (version == info.versionCode
                        && updateTime == cachingLogic.getLastUpdatedTime(app, info)
                        && TextUtils.equals(c.getString(systemStateIndex),
                                mIconCache.getIconSystemState(info.packageName))) {