private void doReturn() { if (getSMSCodeFlg) { Dialog dialog = new AlertDialog.Builder(this) .setTitle("提示") .setMessage("验证码已发送,是否放弃当前操作?") .setPositiveButton( "确定", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { ZnkActivityUtil.finishActivity(); dialog.dismiss(); } }) .setNegativeButton( "取消", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }) .create(); dialog.show(); } else { ZnkActivityUtil.finishActivity(); } }
@Override public void onFocusChange(View v, boolean hasFocus) { ZnkActivityUtil.setVisibility(v.getId(), hasFocus, clearMap); }