|
|
@ -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();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|