commit | 959a9f5444172dd5fbe970daa2a7c3f04dd2dc7f | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed Jun 01 15:02:39 2022 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Wed Jun 01 15:02:39 2022 -0700 |
tree | 9d3874049d494c8115728f24e6a1aad0e92b7baa | |
parent | 202ac414bfed4c649ded4bd362822de79230c541 [diff] |
Fixing wrong diffing logic in AdapterItem Bug: 232932442 Test: Verified on device Change-Id: I87eae4c238a7b2d9749859307d253822916bb31c
diff --git a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java index c7c4607..fcba246 100644 --- a/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java +++ b/src/com/android/launcher3/allapps/BaseAllAppsAdapter.java
@@ -119,7 +119,7 @@ * 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()); } /**