Search in sources :

Example 26 with FragmentManager

use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class SimDialogActivity method showOrUpdateDialog.

private void showOrUpdateDialog() {
    final int dialogType = getIntent().getIntExtra(DIALOG_TYPE_KEY, INVALID_PICK);
    final String tag = Integer.toString(dialogType);
    final FragmentManager fragmentManager = getSupportFragmentManager();
    SimDialogFragment fragment = (SimDialogFragment) fragmentManager.findFragmentByTag(tag);
    if (fragment == null) {
        fragment = createFragment(dialogType);
        fragment.show(fragmentManager, tag);
    } else {
        fragment.updateDialog();
    }
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager)

Example 27 with FragmentManager

use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class DisableDevSettingsDialogFragment method show.

public static void show(DevelopmentSettingsDashboardFragment host) {
    final DisableDevSettingsDialogFragment dialog = new DisableDevSettingsDialogFragment();
    dialog.setTargetFragment(host, 0);
    final FragmentManager manager = host.getActivity().getSupportFragmentManager();
    dialog.show(manager, TAG);
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager)

Example 28 with FragmentManager

use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class UpdateRecoveryWarningDialog method show.

public static void show(Fragment host) {
    final FragmentManager manager = host.getActivity().getSupportFragmentManager();
    if (manager.findFragmentByTag(TAG) == null) {
        final UpdateRecoveryWarningDialog dialog = new UpdateRecoveryWarningDialog();
        dialog.setTargetFragment(host, 0);
        dialog.show(manager, TAG);
    }
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager)

Example 29 with FragmentManager

use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class EnableAdbWarningDialog method show.

public static void show(Fragment host) {
    final FragmentManager manager = host.getActivity().getSupportFragmentManager();
    if (manager.findFragmentByTag(TAG) == null) {
        final EnableAdbWarningDialog dialog = new EnableAdbWarningDialog();
        dialog.setTargetFragment(host, 0);
        dialog.show(manager, TAG);
    }
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager)

Example 30 with FragmentManager

use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class EnableOemUnlockSettingWarningDialog method show.

public static void show(Fragment host) {
    final FragmentManager manager = host.getActivity().getSupportFragmentManager();
    if (manager.findFragmentByTag(TAG) == null) {
        final EnableOemUnlockSettingWarningDialog dialog = new EnableOemUnlockSettingWarningDialog();
        dialog.setTargetFragment(host, 0);
        dialog.show(manager, TAG);
    }
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager)

Aggregations

FragmentManager (androidx.fragment.app.FragmentManager)170 FragmentTransaction (androidx.fragment.app.FragmentTransaction)55 Fragment (androidx.fragment.app.Fragment)42 Bundle (android.os.Bundle)28 Test (org.junit.Test)15 Intent (android.content.Intent)13 FragmentActivity (androidx.fragment.app.FragmentActivity)10 Activity (android.app.Activity)6 View (android.view.View)6 DialogFragment (androidx.fragment.app.DialogFragment)6 TaskRetainerFragment (com.owncloud.android.ui.fragment.TaskRetainerFragment)5 ArrayList (java.util.ArrayList)5 Context (android.content.Context)4 DialogInterface (android.content.DialogInterface)3 LayoutInflater (android.view.LayoutInflater)3 MenuInflater (android.view.MenuInflater)3 Window (android.view.Window)3 TextView (android.widget.TextView)3 ViewModelProvider (androidx.lifecycle.ViewModelProvider)3 SslUntrustedCertDialog (com.owncloud.android.ui.dialog.SslUntrustedCertDialog)3