Skip to content

Commit

Permalink
FIX: Hanging in app list UI caused by a rare infinite loop issue intr…
Browse files Browse the repository at this point in the history
…oduced in commit 898d55fc.
  • Loading branch information
oasisfeng committed Jun 19, 2020
1 parent 85b04eb commit a61cd7e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a61cd7e

Please sign in to comment.