use of androidx.fragment.app.FragmentManager in project Gadgetbridge by Freeyourgadget.
the class ActivityListingChartFragment method showDetail.
private void showDetail(int tsFrom, int tsTo, ActivitySession item, GBDevice device) {
FragmentManager fm = getActivity().getSupportFragmentManager();
ActivityListingDetail listingDetailFragment = ActivityListingDetail.newInstance(tsFrom, tsTo, item, device);
listingDetailFragment.show(fm, "activity_list_detail");
}
use of androidx.fragment.app.FragmentManager in project xabber-android by redsolution.
the class ChatFragment method showForwardPanel.
private void showForwardPanel(List<String> forwardIds) {
List<String> ids = new ArrayList<>(forwardIds);
Activity activity = getActivity();
if (activity != null && !activity.isFinishing()) {
FragmentManager fragmentManager = getChildFragmentManager();
forwardPanel = ForwardPanel.newInstance(ids);
FragmentTransaction fTrans = fragmentManager.beginTransaction();
fTrans.replace(R.id.secondBottomPanel, forwardPanel);
fTrans.commit();
}
}
use of androidx.fragment.app.FragmentManager in project xabber-android by redsolution.
the class ChatFragment method hideForwardPanel.
private void hideForwardPanel() {
forwardIds.clear();
setUpInputViewButtons();
Activity activity = getActivity();
if (activity != null && !activity.isFinishing()) {
FragmentManager fragmentManager = getChildFragmentManager();
FragmentTransaction fTrans = fragmentManager.beginTransaction();
fTrans.remove(forwardPanel);
fTrans.commit();
}
}
use of androidx.fragment.app.FragmentManager in project FlexibleAdapter by davideas.
the class MainActivity method initializeFragment.
private void initializeFragment(Bundle savedInstanceState) {
if (savedInstanceState != null) {
mFragment = (AbstractFragment) getSupportFragmentManager().getFragment(savedInstanceState, STATE_ACTIVE_FRAGMENT);
}
if (mFragment == null) {
mFragment = FragmentOverall.newInstance(2);
}
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.recycler_view_container, mFragment).commit();
}
use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class WifiDppChooseSavedWifiNetworkFragment method onActivityCreated.
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
final ActionBar actionBar = getActivity().getActionBar();
if (actionBar != null) {
actionBar.hide();
}
/**
* Embeded WifiNetworkListFragment as child fragment within
* WifiDppChooseSavedWifiNetworkFragment.
*/
final FragmentManager fragmentManager = getChildFragmentManager();
final WifiNetworkListFragment fragment = new WifiNetworkListFragment();
final Bundle args = getArguments();
if (args != null) {
fragment.setArguments(args);
}
final FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.wifi_network_list_container, fragment, TAG_FRAGMENT_WIFI_NETWORK_LIST);
fragmentTransaction.commit();
}
Aggregations