Commit 0d412ef5 authored by ano95's avatar ano95

Fix codestyle errors

parent 7b7c12b5
...@@ -164,12 +164,12 @@ public class UsersOfRoomDialogFragment extends AbstractChatRoomDialogFragment { ...@@ -164,12 +164,12 @@ public class UsersOfRoomDialogFragment extends AbstractChatRoomDialogFragment {
JSONArray array = new JSONArray(procedure.getRecords()); JSONArray array = new JSONArray(procedure.getRecords());
ArrayList<String> users = new ArrayList<>(); ArrayList<String> users = new ArrayList<>();
for (int i = 0; i < array.length(); i++) { for (int i = 0; i < array.length(); i++) {
Object o = array.get(i); Object userObject = array.get(i);
if(o instanceof JSONObject) { if (userObject instanceof JSONObject) {
JSONObject user = (JSONObject) o; JSONObject user = (JSONObject) userObject;
users.add(user.getString("username")); users.add(user.getString("username"));
}else{ } else {
users.add((String) o); users.add((String) userObject);
} }
} }
onRenderUsers(users); onRenderUsers(users);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment