|
@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.bumptech.glide.Glide;
|
|
import com.bumptech.glide.Glide;
|
|
|
import com.kfzs.duanduan.ActMain;
|
|
import com.kfzs.duanduan.ActMain;
|
|
|
|
|
+import com.kfzs.duanduan.react.ReactUtil;
|
|
|
import com.kfzs.duanduan.view.DialogStorageLow;
|
|
import com.kfzs.duanduan.view.DialogStorageLow;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.CreditCard;
|
|
import com.sheep.gamegroup.model.entity.CreditCard;
|
|
@@ -168,7 +169,7 @@ public class TestUtil {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void testChange(final Activity activity, TextView test_change) {
|
|
public static void testChange(final Activity activity, TextView test_change) {
|
|
|
- if (isTest()) {
|
|
|
|
|
|
|
+ if (isTest() && !ReactUtil.isHasConnectConfig()) {
|
|
|
test_change.setVisibility(View.VISIBLE);
|
|
test_change.setVisibility(View.VISIBLE);
|
|
|
test_change.setText(SheepApp.getInstance().getConnectAddress().getName());
|
|
test_change.setText(SheepApp.getInstance().getConnectAddress().getName());
|
|
|
test_change.setOnClickListener(new View.OnClickListener() {
|
|
test_change.setOnClickListener(new View.OnClickListener() {
|
|
@@ -190,7 +191,7 @@ public class TestUtil {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
public static void testChangeUser(final Activity activity, TextView test_change) {
|
|
public static void testChangeUser(final Activity activity, TextView test_change) {
|
|
|
- if (isTest()) {
|
|
|
|
|
|
|
+ if (isTest() && !ReactUtil.isHasConnectConfig()) {
|
|
|
|
|
|
|
|
test_change.setVisibility(View.VISIBLE);
|
|
test_change.setVisibility(View.VISIBLE);
|
|
|
test_change.setText("切换账号");
|
|
test_change.setText("切换账号");
|