commit | 506be7ec6acc816a5e443a921187fef379afe727 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Sat Jun 03 08:08:37 2023 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jun 03 16:54:00 2023 +0000 |
tree | 4550134ad105ead7a0e18a7d099b077f5f99b24a | |
parent | 376de831cb0e0574b280a0582fdfd46e1807195d [diff] |
Fixing syntax error due to java-version changes Bug: 284032965 Test: Presubmit (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:250661e172780570a66768d443071b32059cc57d) Merged-In: I2ee30dfa5e4170272b5353f270a69b38750a0bd5 Change-Id: I2ee30dfa5e4170272b5353f270a69b38750a0bd5
diff --git a/src/com/android/launcher3/icons/IconCache.java b/src/com/android/launcher3/icons/IconCache.java index 72feb7b..bc57f66 100644 --- a/src/com/android/launcher3/icons/IconCache.java +++ b/src/com/android/launcher3/icons/IconCache.java
@@ -187,10 +187,10 @@ getTitleAndIcon(info, false); return info; }; - } else if (info instanceof PackageItemInfo pii) { + } else if (info instanceof PackageItemInfo) { task = () -> { - getTitleAndIconForApp(pii, false); - return pii; + getTitleAndIconForApp((PackageItemInfo) info, false); + return info; }; } else { Log.i(TAG, "Icon update not supported for "