mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Try to focus previous message too
This commit is contained in:
@@ -1225,6 +1225,8 @@ public class FragmentMessages extends FragmentBase
|
||||
public void onItemRangeRemoved(int positionStart, int itemCount) {
|
||||
if (accessibility || BuildConfig.DEBUG) {
|
||||
RecyclerView.ViewHolder vh = rvMessage.findViewHolderForAdapterPosition(positionStart);
|
||||
if (vh == null && positionStart > 0)
|
||||
vh = rvMessage.findViewHolderForAdapterPosition(positionStart - 1);
|
||||
if (vh != null)
|
||||
vh.itemView.requestFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user