|
|
@@ -1283,7 +1283,23 @@ public class CommonEditorActivity extends AppCompatActivity implements View.OnLa
|
|
|
public void run() {
|
|
|
JSONObject refresh_params = get_refresh_param();
|
|
|
if (refresh_params == null)
|
|
|
- return;
|
|
|
+ {
|
|
|
+
|
|
|
+ runOnUiThread(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run()
|
|
|
+ {
|
|
|
+ pd.dismiss();
|
|
|
+// if (editor_json == null) {
|
|
|
+ RAUtil.alertMessage(mCtx,"Warning","Something is wrong, please contact administrator.");
|
|
|
+ adapter.notifyDataSetChanged();
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ return;
|
|
|
+// }
|
|
|
+ }
|
|
|
Iterator<String> iterator = refresh_params.keys();
|
|
|
|
|
|
while (iterator.hasNext()) {
|
|
|
@@ -1362,6 +1378,8 @@ public class CommonEditorActivity extends AppCompatActivity implements View.OnLa
|
|
|
try {
|
|
|
JSONObject params = new JSONObject();
|
|
|
JSONObject param_names = content_data_download.optJSONObject("up_params");
|
|
|
+ if (param_names == null)
|
|
|
+ return null;
|
|
|
int param_count = param_names.optInt("count");
|
|
|
for (int pc = 0; pc < param_count; pc++) {
|
|
|
String param_name = param_names.optString("val_" + pc);
|