Add nearby list fragment to bottom sheet

This commit is contained in:
neslihanturan 2017-12-11 12:34:33 +03:00 committed by maskara
parent a5c5da8b14
commit b81cd4e167

View file

@ -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();
} }