From a61cd7e2405de1448ce9c993bafc2c3cde41cdba Mon Sep 17 00:00:00 2001 From: oasisfeng Date: Fri, 19 Jun 2020 23:16:44 +0800 Subject: [PATCH] FIX: Hanging in app list UI caused by a rare infinite loop issue introduced in commit 898d55fc. --- .../src/main/java/com/oasisfeng/common/app/AppLabelCache.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/src/main/java/com/oasisfeng/common/app/AppLabelCache.java b/mobile/src/main/java/com/oasisfeng/common/app/AppLabelCache.java index b7ddddac2..7ddae6407 100644 --- a/mobile/src/main/java/com/oasisfeng/common/app/AppLabelCache.java +++ b/mobile/src/main/java/com/oasisfeng/common/app/AppLabelCache.java @@ -50,8 +50,7 @@ class AppLabelCache implements ComponentCallbacks { @Override protected void onPostExecute(final CharSequence raw_label) { final String label = filterString(raw_label.toString()); - if (raw_label != info.nonLocalizedLabel && raw_label != info.name && raw_label != info.packageName) // Trivial to cache non-localized label - mStore.edit().putInt(version_key, version).putString(pkg, label).apply(); + mStore.edit().putInt(version_key, version).putString(pkg, label).apply(); if (Objects.equals(label, cached_label)) return; // Unchanged mCallback.onLabelUpdate(pkg, label); }