entrance检查与统一

This commit is contained in:
huangzhuanghua
2017-01-20 17:11:03 +08:00
parent b3fc66f6b9
commit b2d568d646
72 changed files with 521 additions and 3895 deletions

View File

@ -49,8 +49,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
@BindView(R.id.et_suggest_connectway) EditText et_suggest_connectway;
@BindView(R.id.btn_suggest_post) CardLinearLayout btn_suggest_post;
private boolean isShowing = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ -110,7 +108,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
if (TextUtils.isEmpty(email)) {
showConfirmDialog(email);
} else if (isEmailAddress(email)) {
isShowing = true;
Dialog dialog = new Dialog(this);
View view = View.inflate(this, R.layout.set_wait_dialog, null);
TextView message = (TextView) view
@ -120,15 +117,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
dialog.setContentView(view);
dialog.setCanceledOnTouchOutside(false);
dialog.setCancelable(false);
// dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
// @Override
// public void onDismiss(DialogInterface dialog) {
// if (isShowing) {
// AppController.canclePendingRequests(TAG);
// toast("取消发送");
// }
// }
// });
dialog.show();
sendSuggestion(dialog, email);
} else {
@ -165,7 +153,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
new DialogUtils.CancelListener() {
@Override
public void onCancel() {
isShowing = true;
Dialog dialog = new Dialog(SuggestionActivity.this);
View view = View.inflate(SuggestionActivity.this,
R.layout.set_wait_dialog, null);
@ -176,15 +163,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
dialog.setContentView(view);
dialog.setCanceledOnTouchOutside(false);
dialog.setCancelable(false);
// dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
// @Override
// public void onDismiss(DialogInterface dialog) {
// if (isShowing) {
// AppController.canclePendingRequests(TAG);
// toast("取消发送");
// }
// }
// });
dialog.show();
sendSuggestion(dialog, email);
}
@ -210,7 +188,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
.subscribe(new JSONObjectResponse() {
@Override
public void onResponse(JSONObject response) {
isShowing = false;
dialog.dismiss();
if (response.length() != 0) {
@ -231,7 +208,6 @@ public class SuggestionActivity extends BaseActivity implements OnClickListener
@Override
public void onFailure(HttpException e) {
isShowing = false;
dialog.dismiss();
toast("提交失败,请检查网络状态");