/** * 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); } }
public void run() { dismissDialog(); }