Update DownloaderFragment.java
Signed-off-by: TomABdh <zhup@kean.edu>
This commit is contained in:
parent
918b9bfa5d
commit
bab3d14d2c
1 changed files with 6 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Reference in a new issue