Update DownloaderFragment.java
Show or hide FAB buttons based on search results. Signed-off-by: TomABdh <zhup@kean.edu>
This commit is contained in:
parent
98426885d9
commit
c33c10cca5
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Reference in a new issue