diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java index 1d19c9453..53de1c5fa 100644 --- a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java +++ b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java @@ -121,6 +121,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp } }); + bottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN); bottomSheetBehaviorForDetails = BottomSheetBehavior.from(bottomSheetDetails); bottomSheetBehaviorForDetails.setState(BottomSheetBehavior.STATE_HIDDEN); } @@ -391,7 +392,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp Fragment fragment = new NearbyListFragment(); fragment.setArguments(bundle); fragmentTransaction.replace(R.id.container_sheet, fragment); - bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED); + bottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN); //TODO replace this sheet for details map fragmentTransaction.commitAllowingStateLoss(); } diff --git a/app/src/main/res/color/button_color_selector.xml b/app/src/main/res/color/button_color_selector.xml index 7f79c5126..949930952 100644 --- a/app/src/main/res/color/button_color_selector.xml +++ b/app/src/main/res/color/button_color_selector.xml @@ -1,4 +1,3 @@ -