Java Code Examples for android.support.v7.app.AlertDialog.dismiss()

The following are Jave code examples for showing how to use dismiss() of the android.support.v7.app.AlertDialog class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: revolution-irc   File: UserOverrideTrustManager.java   Source Code and License Vote up 5 votes
@Override
public void dismissDialog(Activity activity) {
    if (mLastDialog != null) {
        AlertDialog dialog = mLastDialog.get();
        if (dialog != null)
            dialog.dismiss();
        mLastDialog = null;
    }
}
 
Example 2
Project: WeatherPlus   File: PermissionActivity.java   Source Code and License Vote up 5 votes
@Override
protected void onDestroy() {
    Log.d(TAG, "onDestroy: Destroy all dialogs");
    super.onDestroy();

    for (AlertDialog dialog : infoDialogs) {
        dialog.dismiss();
    }

    mPermissionCallback = null;
}