Fixed destination behaviour

This commit is contained in:
CappielloAntonio 2022-01-10 12:46:37 +01:00
parent d53c29a9a2
commit c7fb6c2cb9

View file

@ -183,8 +183,7 @@ public class MainActivity extends BaseActivity {
if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_EXPANDED && (
destination.getId() == R.id.homeFragment ||
destination.getId() == R.id.libraryFragment ||
destination.getId() == R.id.searchFragment ||
destination.getId() == R.id.settingsFragment)
destination.getId() == R.id.downloadFragment)
) {
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
}