Commit 850c58c6 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Rename method.

parent 0ead1f32
......@@ -490,7 +490,7 @@ public class MethodCallHelper {
JSONArray userJsonArray = (JSONArray) result.get("users");
int usersTotal = userJsonArray.length();
for (int i = 0; i < usersTotal; ++i) {
RealmSpotlight.Companion.customizeUserJsonObject(userJsonArray.getJSONObject(i));
RealmSpotlight.Companion.customizeUserJSONObject(userJsonArray.getJSONObject(i));
}
if (jsonString == null) {
......
......@@ -20,7 +20,7 @@ open class RealmSpotlight : RealmObject() {
}
companion object {
fun customizeUserJsonObject(userJsonObject: JSONObject) {
fun customizeUserJSONObject(userJsonObject: JSONObject) {
userJsonObject.put(Columns.NAME, userJsonObject.get("username"))
userJsonObject.put(Columns.TYPE, "d")
userJsonObject.remove("username")
......
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