From b15bdbca5f070fef8bbdfb8862c36e67d132f1d2 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Wed, 28 May 2014 01:23:32 +0200 Subject: [PATCH] Fix dialog --- OsmAnd/src/net/osmand/plus/osmo/OsMoGroups.java | 4 ++-- OsmAnd/src/net/osmand/plus/osmo/SettingsOsMoActivity.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroups.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroups.java index a408eeb35c..e0f519d9b5 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroups.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroups.java @@ -20,7 +20,7 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener { private static final String GROUP_NAME = "name"; private static final String GROUP_ID = "group_id"; - private static final String EXPIRE_TIME = "expireTime"; + private static final String EXPIRE_TIME = "until"; private static final String DESCRIPTION = "description"; private static final String POLICY = "policy"; private static final String USERS = "users"; @@ -137,7 +137,7 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener { boolean processed = false; String operation = command + ":" + gid; OsMoGroup group = null; - if(command.equalsIgnoreCase("GROUP_CHANGE")) { + if(command.equalsIgnoreCase("GP")) { group = storage.getGroup(gid); if(group != null) { List delta = mergeGroup(group, obj, false); diff --git a/OsmAnd/src/net/osmand/plus/osmo/SettingsOsMoActivity.java b/OsmAnd/src/net/osmand/plus/osmo/SettingsOsMoActivity.java index c490647bfb..069d810578 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/SettingsOsMoActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmo/SettingsOsMoActivity.java @@ -1,9 +1,7 @@ package net.osmand.plus.osmo; -import java.util.ArrayList; import java.util.List; -import java.util.concurrent.ConcurrentLinkedQueue; import net.osmand.access.AccessibleToast; import net.osmand.plus.R;