From 959a9f5444172dd5fbe970daa2a7c3f04dd2dc7f Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 1 Jun 2022 15:02:39 -0700 Subject: [PATCH] Fixing wrong diffing logic in AdapterItem Bug: 232932442 Test: Verified on device Change-Id: I87eae4c238a7b2d9749859307d253822916bb31c --- src/com/android/launcher3/allapps/BaseAllAppsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java index c7c4607d6e..fcba246c95 100644 --- a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java +++ b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java @@ -119,7 +119,7 @@ public abstract class BaseAllAppsAdapter ex * Returns true if the items represent the same object */ public boolean isSameAs(AdapterItem other) { - return (other.viewType != viewType) && (other.getClass() == getClass()); + return (other.viewType == viewType) && (other.getClass() == getClass()); } /**