Search in sources :

Example 6 with YesNoDialog

use of com.frostwire.android.gui.dialogs.YesNoDialog in project frostwire by frostwire.

the class MainActivity method showLastBackDialog.

private void showLastBackDialog() {
    YesNoDialog dlg = YesNoDialog.newInstance(LAST_BACK_DIALOG_ID, R.string.minimize_frostwire, R.string.are_you_sure_you_wanna_leave, YesNoDialog.FLAG_DISMISS_ON_OK_BEFORE_PERFORM_DIALOG_CLICK);
    // see onDialogClick
    dlg.show(getFragmentManager());
}
Also used : YesNoDialog(com.frostwire.android.gui.dialogs.YesNoDialog)

Example 7 with YesNoDialog

use of com.frostwire.android.gui.dialogs.YesNoDialog in project frostwire by frostwire.

the class SeedAction method showSeedingDialog.

private void showSeedingDialog() {
    YesNoDialog dlg = YesNoDialog.newInstance(DLG_SEEDING_OFF_TAG, R.string.enable_seeding, R.string.seeding_is_currently_disabled_in_settings, YesNoDialog.FLAG_DISMISS_ON_OK_BEFORE_PERFORM_DIALOG_CLICK);
    dlg.setOnDialogClickListener(this);
    dlg.show(((Activity) getContext()).getFragmentManager());
}
Also used : YesNoDialog(com.frostwire.android.gui.dialogs.YesNoDialog)

Aggregations

YesNoDialog (com.frostwire.android.gui.dialogs.YesNoDialog)7 SwitchPreferenceCompat (android.support.v7.preference.SwitchPreferenceCompat)1