|
|
@@ -17,7 +17,6 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.common.LogUtil;
|
|
|
-import com.core.app.R;
|
|
|
import com.common.data.JSONUtil;
|
|
|
import com.common.data.ListUtils;
|
|
|
import com.common.data.StringUtil;
|
|
|
@@ -28,6 +27,7 @@ import com.core.api.wxapi.ApiPlatform;
|
|
|
import com.core.api.wxapi.ApiUtils;
|
|
|
import com.core.app.Constants;
|
|
|
import com.core.app.MyApplication;
|
|
|
+import com.core.app.R;
|
|
|
import com.core.base.BaseActivity;
|
|
|
import com.core.model.LoginEntity;
|
|
|
import com.core.net.utils.NetUtils;
|
|
|
@@ -63,9 +63,7 @@ public class ViewUtil {
|
|
|
private static List<LoginEntity> erpEntities;
|
|
|
private static boolean hasErp = true;//是否有erp
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
private static String oldMsg;
|
|
|
private static long time;
|
|
|
private static String oldMsg2;
|
|
|
@@ -75,14 +73,7 @@ public class ViewUtil {
|
|
|
|
|
|
public static Crouton crouton;
|
|
|
|
|
|
- /**
|
|
|
- * 弹出Toast消息
|
|
|
- * <p>
|
|
|
- * update for LiuJie
|
|
|
- *
|
|
|
- * @param msg
|
|
|
- * @author RaoMeng
|
|
|
- */
|
|
|
+
|
|
|
public static void ToastMessage(Context cont, String msg) {
|
|
|
if (StringUtil.isEmpty(msg)) return;
|
|
|
if (cont instanceof Activity) {
|
|
|
@@ -102,12 +93,7 @@ public class ViewUtil {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 弹出Toast消息
|
|
|
- *
|
|
|
- * @param msg
|
|
|
- * @author RaoMeng
|
|
|
- */
|
|
|
+
|
|
|
public static void ToastMessage(Context cont, String msg, int toastColor, int toastTime) {
|
|
|
if (cont instanceof Activity) {
|
|
|
if (crouton != null) {
|