Created
June 9, 2020 12:15
-
-
Save franciscofranco/5f41e0422c0331c395d49a048cd699aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onBackPressed() { | |
if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_EXPANDED) { | |
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment