commit | 194a5249a5e687874707691f3214107a016703cb | [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> | Fri Sep 01 14:18:45 2023 +0000 |
tree | 0c0611e3abe414c2fc321551d06bc07681e12fc8 | |
parent | 917af63799483cbc155e29f368edd49888f3a288 [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 "