mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Add nearby list fragment to bottom sheet
This commit is contained in:
parent
a5c5da8b14
commit
b81cd4e167
1 changed files with 3 additions and 1 deletions
|
|
@ -400,7 +400,9 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
||||||
Fragment fragment = new NearbyListFragment();
|
Fragment fragment = new NearbyListFragment();
|
||||||
fragment.setArguments(bundle);
|
fragment.setArguments(bundle);
|
||||||
fragmentTransaction.replace(R.id.container, fragment, fragment.getClass().getSimpleName());
|
fragmentTransaction.replace(R.id.container_sheet, fragment);
|
||||||
|
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
|
||||||
|
//TODO replace this sheet for details map
|
||||||
fragmentTransaction.commitAllowingStateLoss();
|
fragmentTransaction.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue