|
|
@@ -416,14 +416,14 @@ public class ViewUtil {
|
|
|
ChangeStatusERP(result);
|
|
|
} else {
|
|
|
String reason = JSON.parseObject(result).getString("reason");
|
|
|
- ToastMessage(ct, reason, Style.holoGreenLight, 3000);
|
|
|
+ ToastMessage(MyApplication.getInstance(), reason, Style.holoGreenLight, 3000);
|
|
|
}
|
|
|
} else {
|
|
|
- ToastMessage(ct, "接口数据非法!", Style.holoRedLight, 3000);
|
|
|
+ ToastMessage(MyApplication.getInstance(), "接口数据非法!", Style.holoRedLight, 3000);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
- ToastMessage(ct, MyApplication.getInstance().getString(R.string.login_error_erp), Style.holoRedLight, 3000);
|
|
|
+ ToastMessage(MyApplication.getInstance(), MyApplication.getInstance().getString(R.string.login_error_erp), Style.holoRedLight, 3000);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -704,7 +704,7 @@ public class ViewUtil {
|
|
|
// if (select > items.length) {
|
|
|
// select = 0;
|
|
|
// }
|
|
|
- popupWindow=null;
|
|
|
+
|
|
|
showPopDialog((Activity) ct,itemsSelectType1s,phone,password);
|
|
|
// loginERPDialog = new MaterialDialog.Builder(ct)
|
|
|
// .title(ct.getString(R.string.user_dialog_company))
|
|
|
@@ -736,6 +736,7 @@ public class ViewUtil {
|
|
|
}
|
|
|
if (DialogUtils.isDialogShowing(popupWindow)){
|
|
|
popupWindow.dismiss();
|
|
|
+ popupWindow=null;
|
|
|
}
|
|
|
WindowManager windowManager = (WindowManager)ct. getSystemService(Context.WINDOW_SERVICE);
|
|
|
if (popupWindow == null) {
|