Add nickname

This commit is contained in:
vshcherb 2014-05-28 18:15:37 +02:00
parent b49791add0
commit f2f69e08ca
2 changed files with 4 additions and 2 deletions

View file

@ -60,7 +60,7 @@
android:paddingLeft="3dp" />
</TableRow>
<TableRow android:id="@+id/MyGroupName">
<TableRow android:id="@+id/MyGroupName" android:visibility="gone">
<TextView
android:layout_width="wrap_content"

View file

@ -240,7 +240,9 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
private List<OsMoDevice> mergeGroup(OsMoGroup gr, JSONObject obj, boolean deleteUsers) {
List<OsMoDevice> delta = new ArrayList<OsMoDevice>();
try {
if(obj.has("group")) {
parseGroup(obj.getJSONObject("group"), gr);
}
JSONArray arr = obj.getJSONArray(USERS);
Map<String, OsMoDevice> toDelete = new HashMap<String, OsMoDevice>(gr.users);
for (int i = 0; i < arr.length(); i++) {