Merge "Fixing wrong diffing logic in AdapterItem" into tm-dev am: c2c1fdad54

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18701868

Change-Id: I3cbdc77cdb7e553cb45e742e79090563617f9951
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunny Goyal
2022-06-02 17:00:51 +00:00
committed by Automerger Merge Worker
@@ -119,7 +119,7 @@ public abstract class BaseAllAppsAdapter<T extends Context & ActivityContext> 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());
}
/**