mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Fix pool limits and y-translation issues with CFv2 recycler view.
This commit is contained in:
@@ -89,6 +89,10 @@ public class MappingAdapter extends ListAdapter<MappingModel<?>, MappingViewHold
|
||||
registerFactory(clazz, new LayoutFactory<>(creator, layout));
|
||||
}
|
||||
|
||||
public Map<Class<?>, Integer> getItemTypes() {
|
||||
return new HashMap<>(itemTypes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
Integer type = itemTypes.get(getItem(position).getClass());
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PagingMappingAdapter<Key> extends MappingAdapter {
|
||||
return getItem(position) != null;
|
||||
}
|
||||
|
||||
private static class Placeholder implements MappingModel<Placeholder> {
|
||||
protected static class Placeholder implements MappingModel<Placeholder> {
|
||||
@Override
|
||||
public boolean areItemsTheSame(@NonNull Placeholder newItem) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user