Update DownloaderFragment.java

Signed-off-by: TomABdh <zhup@kean.edu>
This commit is contained in:
Tom 2023-06-18 12:15:45 +08:00 committed by TomABdh
parent 918b9bfa5d
commit bab3d14d2c

View file

@ -61,14 +61,18 @@ public class DownloaderFragment extends BaseMwmRecyclerFragment<DownloaderAdapte
return mAdapter != null && mAdapter.getItemCount() > 0;
}
private void showFab() {
if (mFab != null && shouldShowFab()) {
if (mFab != null && shouldShowFab() && !isRecyclerViewAtBottom()) {
mFab.show();
} else {
mFab.hide();
}
}
private void hideFab() {
if (mFab != null) {
if (mFab != null && shouldShowFab() && !isRecyclerViewAtBottom()) {
mFab.hide();
} else {
mFab.show();
}
}
private boolean isRecyclerViewAtBottom() {