List of usage examples for android.content DialogInterface notify
@HotSpotIntrinsicCandidate public final native void notify();
From source file:com.freerdp.freerdpcore.presentation.SessionActivity.java
private void createDialogs() { // build verify certificate dialog dlgVerifyCertificate = new AlertDialog.Builder(this).setTitle(R.string.dlg_title_verify_certificate) .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { @Override/* w ww.java2 s . c o m*/ public void onClick(DialogInterface dialog, int which) { callbackDialogResult = true; synchronized (dialog) { dialog.notify(); } } }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { callbackDialogResult = false; connectCancelledByUser = true; synchronized (dialog) { dialog.notify(); } } }).setCancelable(false).create(); // build the dialog userCredView = getLayoutInflater().inflate(R.layout.credentials, null, true); dlgUserCredentials = new AlertDialog.Builder(this).setView(userCredView) .setTitle(R.string.dlg_title_credentials) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { callbackDialogResult = true; synchronized (dialog) { dialog.notify(); } } }).setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { callbackDialogResult = false; connectCancelledByUser = true; synchronized (dialog) { dialog.notify(); } } }).setCancelable(false).create(); }