mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Set display list button visibility according to bottom sheet visibility
This commit is contained in:
parent
773e072b95
commit
503a7a01a4
1 changed files with 12 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
|||
|
||||
@Override
|
||||
public void onStateChanged(View bottomSheet, int newState) {
|
||||
// TODO prepareViewsForSheetPosition(newState);
|
||||
prepareViewsForSheetPosition(newState);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -404,4 +404,15 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
|||
public void onLocationChanged(LatLng latLng) {
|
||||
refreshView(false);
|
||||
}
|
||||
|
||||
public void prepareViewsForSheetPosition(int bottomSheetState) {
|
||||
if (bottomSheetState >= BottomSheetBehavior.STATE_COLLAPSED) {
|
||||
fabList.show();
|
||||
}
|
||||
else if (bottomSheetState == BottomSheetBehavior.STATE_EXPANDED) {
|
||||
fabList.hide();
|
||||
//NearbyActivity.bottomSheetStatus = BottomSheetStatus.DISPLAY_LIST_SHEET;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue