Search in sources :

Example 46 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class RunningServiceDetails method showConfirmStopDialog.

private void showConfirmStopDialog(ComponentName comp) {
    DialogFragment newFragment = MyAlertDialogFragment.newConfirmStop(DIALOG_CONFIRM_STOP, comp);
    newFragment.setTargetFragment(this, 0);
    newFragment.show(getFragmentManager(), "confirmstop");
}
Also used : DialogFragment(android.app.DialogFragment)

Example 47 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class SupportItemAdapter method tryStartDisclaimerAndSupport.

/**
     * Show a disclaimer dialog and start support action after disclaimer has been acknowledged.
     */
private void tryStartDisclaimerAndSupport(@SupportFeatureProvider.SupportType final int type) {
    if (mSupportFeatureProvider.shouldShowDisclaimerDialog(mActivity)) {
        DialogFragment fragment = SupportDisclaimerDialogFragment.newInstance(mAccount, type);
        fragment.show(mActivity.getFragmentManager(), SupportDisclaimerDialogFragment.TAG);
        return;
    }
    mSupportFeatureProvider.startSupport(mActivity, mAccount, type);
}
Also used : DialogFragment(android.app.DialogFragment) SupportDisclaimerDialogFragment(com.android.settings.support.SupportDisclaimerDialogFragment) SupportPhoneDialogFragment(com.android.settings.support.SupportPhoneDialogFragment)

Example 48 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class PixelAnimDurationSettings method showDialogInner.

private void showDialogInner(int id) {
    DialogFragment newFragment = MyAlertDialogFragment.newInstance(id);
    newFragment.setTargetFragment(this, 0);
    newFragment.show(getFragmentManager(), "dialog " + id);
}
Also used : DialogFragment(android.app.DialogFragment)

Aggregations

DialogFragment (android.app.DialogFragment)48 Fragment (android.app.Fragment)10 FragmentManager (android.app.FragmentManager)7 FragmentTransaction (android.app.FragmentTransaction)7 ConfirmationDialogFragment (com.fsck.k9.fragment.ConfirmationDialogFragment)3 Intent (android.content.Intent)2 Bundle (android.os.Bundle)2 View (android.view.View)2 TextView (android.widget.TextView)2 GPSAlertDialogFragment (com.agup.gps.fragments.GPSAlertDialogFragment)2 NetworkAlertDialogFragment (com.agup.gps.fragments.NetworkAlertDialogFragment)2 BackupAccountsDialogFragment (com.decad3nce.aegis.Fragments.BackupAccountsDialogFragment)2 ProgressDialogFragment (com.fsck.k9.fragment.ProgressDialogFragment)2 BaseFragment (it.gmariotti.cardslib.demo.fragment.BaseFragment)2 Activity (android.app.Activity)1 DevicePolicyManager (android.app.admin.DevicePolicyManager)1 BroadcastReceiver (android.content.BroadcastReceiver)1 ComponentName (android.content.ComponentName)1 Context (android.content.Context)1 IntentFilter (android.content.IntentFilter)1