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

This commit is contained in:
Sunny Goyal
2022-06-02 16:45:31 +00:00
committed by Android (Google) Code Review
@@ -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());
}
/**