Exemplo n.º 1
0
 /**
  * Dismiss this dialog, removing it from the screen. This method can be invoked safely from any
  * thread. Note that you should not override this method to do cleanup when the dialog is
  * dismissed, instead implement that in {@link #onStop}.
  */
 @Override
 public void dismiss() {
   if (Looper.myLooper() == mHandler.getLooper()) {
     dismissDialog();
   } else {
     mHandler.post(mDismissAction);
   }
 }
Exemplo n.º 2
0
 public void run() {
   dismissDialog();
 }