Update DownloaderFragment.java

Show or hide FAB buttons based on search results.

Signed-off-by: TomABdh <zhup@kean.edu>
This commit is contained in:
Zhu Pengming 2023-06-04 14:02:46 +08:00 committed by TomABdh
parent 98426885d9
commit c33c10cca5

View file

@ -270,12 +270,11 @@ public class DownloaderFragment extends BaseMwmRecyclerFragment<DownloaderAdapte
if (mAdapter != null && mAdapter.isSearchResultsMode()){
placeholder.setContent(R.string.search_not_found, R.string.search_not_found_query);
showFabButton(false);
hideFab();
}else{
placeholder.setContent(R.string.downloader_no_downloaded_maps_title, R.string.downloader_no_downloaded_maps_message);
showFabButton(false);
}
showFab();
}
}
@Override