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 "