mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Post focus
This commit is contained in:
@@ -1227,8 +1227,16 @@ public class FragmentMessages extends FragmentBase
|
||||
RecyclerView.ViewHolder vh = rvMessage.findViewHolderForAdapterPosition(positionStart);
|
||||
if (vh == null && positionStart > 0)
|
||||
vh = rvMessage.findViewHolderForAdapterPosition(positionStart - 1);
|
||||
if (vh != null)
|
||||
vh.itemView.requestFocus();
|
||||
if (vh == null)
|
||||
return;
|
||||
|
||||
View v = vh.itemView;
|
||||
rvMessage.post(new RunnableEx("focus") {
|
||||
@Override
|
||||
protected void delegate() {
|
||||
v.requestFocus();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user