From 4c2c8fdec431a718ec018c14f1b60322375f7cfc Mon Sep 17 00:00:00 2001 From: Langston Smith Date: Thu, 19 Mar 2020 00:24:38 -0700 Subject: [PATCH] setting bottomSheetBehavior hideable to true --- .../places/picker/ui/CurrentPlaceSelectionBottomSheet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/picker/ui/CurrentPlaceSelectionBottomSheet.java b/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/picker/ui/CurrentPlaceSelectionBottomSheet.java index ac7bac2be..5524d4f15 100644 --- a/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/picker/ui/CurrentPlaceSelectionBottomSheet.java +++ b/plugin-places/src/main/java/com/mapbox/mapboxsdk/plugins/places/picker/ui/CurrentPlaceSelectionBottomSheet.java @@ -77,7 +77,8 @@ public boolean isShowing() { private void toggleBottomSheet() { bottomSheetBehavior.setPeekHeight(rootView.findViewById(R.id.bottom_sheet_header).getHeight()); - bottomSheetBehavior.setHideable(isShowing()); - bottomSheetBehavior.setState(isShowing() ? STATE_HIDDEN : STATE_COLLAPSED); + boolean isShowing = isShowing(); + bottomSheetBehavior.setHideable(isShowing); + bottomSheetBehavior.setState(isShowing ? STATE_HIDDEN : STATE_COLLAPSED); } } \ No newline at end of file