Fixing wrong diffing logic in AdapterItem

Bug: 232932442
Test: Verified on device
Change-Id: I87eae4c238a7b2d9749859307d253822916bb31c
This commit is contained in:
Sunny Goyal
2022-06-01 15:02:39 -07:00
parent 202ac414bf
commit 959a9f5444

View File

@@ -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());
}
/**