@Override public void handleMessage(Message msg) { switch (msg.what) { case 10: // show networkDialog.show(); break; case 11: // close if (networkDialog != null && networkDialog.isShowing()) networkDialog.dismiss(); break; default: break; } }
@Override public void onClick(MTDialog dialog, View view) { dialog.dismiss(); }