mirror of https://github.com/M66B/FairEmail.git
Try to focus previous message too
This commit is contained in:
parent
fa50fef668
commit
b7171ba453
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue