|
@@ -1282,7 +1282,10 @@ public class CommonEditorActivity extends AppCompatActivity implements View.OnLa
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|
|
|
JSONObject refresh_params = get_refresh_param();
|
|
JSONObject refresh_params = get_refresh_param();
|
|
|
|
|
+ if (refresh_params == null)
|
|
|
|
|
+ return;
|
|
|
Iterator<String> iterator = refresh_params.keys();
|
|
Iterator<String> iterator = refresh_params.keys();
|
|
|
|
|
+
|
|
|
while (iterator.hasNext()) {
|
|
while (iterator.hasNext()) {
|
|
|
String key = iterator.next();
|
|
String key = iterator.next();
|
|
|
String obj_str = "" + refresh_params.optString(key);
|
|
String obj_str = "" + refresh_params.optString(key);
|
|
@@ -2824,13 +2827,13 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
- // 阴影 red
|
|
|
|
|
- holder.title_lb.setBackground(getResources().getDrawable(R.drawable.red_border));
|
|
|
|
|
- } else {
|
|
|
|
|
- // 无阴影
|
|
|
|
|
- holder.title_lb.setBackground(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
+// // 阴影 red
|
|
|
|
|
+// holder.title_lb.setBackground(getResources().getDrawable(R.drawable.red_border));
|
|
|
|
|
+// } else {
|
|
|
|
|
+// // 无阴影
|
|
|
|
|
+// holder.title_lb.setBackground(null);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -3100,13 +3103,13 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (cancommit == false && required != null && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
- // 阴影 red
|
|
|
|
|
- holder.name_lb.setBackground(getResources().getDrawable(R.drawable.red_border));
|
|
|
|
|
- } else {
|
|
|
|
|
- // 无阴影
|
|
|
|
|
- holder.name_lb.setBackground(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (cancommit == false && required != null && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
+// // 阴影 red
|
|
|
|
|
+// holder.name_lb.setBackground(getResources().getDrawable(R.drawable.red_border));
|
|
|
|
|
+// } else {
|
|
|
|
|
+// // 无阴影
|
|
|
|
|
+// holder.name_lb.setBackground(null);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -3257,7 +3260,7 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
required = item_json.optString("required");
|
|
required = item_json.optString("required");
|
|
|
data = item_json.optJSONObject("data");
|
|
data = item_json.optJSONObject("data");
|
|
|
data = item_json.optJSONObject("data");
|
|
data = item_json.optJSONObject("data");
|
|
|
-
|
|
|
|
|
|
|
+ disable = item_json.optBoolean("disable",false);
|
|
|
|
|
|
|
|
if (disable || readonly) {
|
|
if (disable || readonly) {
|
|
|
holder.action_lb.setTextColor(Color.LTGRAY);
|
|
holder.action_lb.setTextColor(Color.LTGRAY);
|
|
@@ -3445,13 +3448,13 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
- // 阴影 red
|
|
|
|
|
- holder.title_lb.setBackground(getResources().getDrawable(R.drawable.red_border));
|
|
|
|
|
- } else {
|
|
|
|
|
- // 无阴影
|
|
|
|
|
- holder.title_lb.setBackground(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
+// // 阴影 red
|
|
|
|
|
+// holder.title_lb.setBackground(getResources().getDrawable(R.drawable.red_border));
|
|
|
|
|
+// } else {
|
|
|
|
|
+// // 无阴影
|
|
|
|
|
+// holder.title_lb.setBackground(null);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -3648,11 +3651,11 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
- // red shadow
|
|
|
|
|
- } else {
|
|
|
|
|
- // no shadow
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
+// // red shadow
|
|
|
|
|
+// } else {
|
|
|
|
|
+// // no shadow
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -3673,11 +3676,11 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
holder.startMark.setVisibility(View.INVISIBLE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
- // red shadow
|
|
|
|
|
- } else {
|
|
|
|
|
- // no shadow
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (cancommit == false && required.equals("true") && (value == null || value.length() == 0)) {
|
|
|
|
|
+// // red shadow
|
|
|
|
|
+// } else {
|
|
|
|
|
+// // no shadow
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|