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
b81cd4e167
commit
a86398dd3b
1 changed files with 12 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
|||
|
||||
@Override
|
||||
public void onStateChanged(View bottomSheet, int newState) {
|
||||
// TODO prepareViewsForSheetPosition(newState);
|
||||
prepareViewsForSheetPosition(newState);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -410,4 +410,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