pull/214/head
M66B 10 months ago
parent decf811114
commit 53535d68a3

@ -1227,8 +1227,16 @@ public class FragmentMessages extends FragmentBase
RecyclerView.ViewHolder vh = rvMessage.findViewHolderForAdapterPosition(positionStart); RecyclerView.ViewHolder vh = rvMessage.findViewHolderForAdapterPosition(positionStart);
if (vh == null && positionStart > 0) if (vh == null && positionStart > 0)
vh = rvMessage.findViewHolderForAdapterPosition(positionStart - 1); vh = rvMessage.findViewHolderForAdapterPosition(positionStart - 1);
if (vh != null) if (vh == null)
vh.itemView.requestFocus(); return;
View v = vh.itemView;
rvMessage.post(new RunnableEx("focus") {
@Override
protected void delegate() {
v.requestFocus();
}
});
} }
} }
}); });

Loading…
Cancel
Save