Show FAB at end

pull/207/head
M66B 3 years ago
parent 6e67e61440
commit 8d60a9d076

@ -981,15 +981,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
rvMessage.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
public void onScrolled(@NonNull RecyclerView rv, int dx, int dy) {
if (dy != 0) {
boolean down = (dy > 0);
boolean down = (dy > 0 && rv.canScrollVertically(RecyclerView.FOCUS_DOWN));
if (scrolling != down) {
scrolling = down;
if (!accessibility &&
(viewType == AdapterMessage.ViewType.UNIFIED ||
viewType == AdapterMessage.ViewType.FOLDER))
if (dy > 0)
if (down)
fabCompose.hide();
else
fabCompose.show();

Loading…
Cancel
Save