Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
45ea4d46cc
4 changed files with 14 additions and 10 deletions
|
@ -33,8 +33,8 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="12sp"
|
||||
|
@ -162,17 +162,18 @@
|
|||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/updates_size"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textSize="16sp"
|
||||
android:text="@string/updates_size"/>
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sizeTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
tools:text="64NB"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textSize="16sp"/>
|
||||
android:textSize="16sp"
|
||||
tools:text="64NB"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -147,8 +147,8 @@
|
|||
</style>
|
||||
|
||||
<style name="OsmandLightTheme.Spinner" parent="Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
|
||||
<item name="android:background">?attr:selectableItemBackground</item>
|
||||
<item name="android:dropDownSelector">?attr:selectableItemBackground</item>
|
||||
<item name="android:background">?attr/selectableItemBackground</item>
|
||||
<item name="android:dropDownSelector">?attr/selectableItemBackground</item>
|
||||
<item name="android:divider">@null</item>
|
||||
<item name="overlapAnchor">true</item>
|
||||
<item name="android:textColorPrimary">@color/color_dialog_buttons_light</item>
|
||||
|
|
|
@ -189,10 +189,12 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
|||
} else if (command.equalsIgnoreCase("GROUP_DISCONNECT")) {
|
||||
group = storage.getGroup(gid);
|
||||
if (group != null) {
|
||||
if (!obj.has("error")) {
|
||||
disconnectAllGroupUsers(group);
|
||||
disableGroupTracks(group, group.groupTracks);
|
||||
disableGroupTracks(group, Collections.singleton(group.name + " points.gpx"));
|
||||
}
|
||||
}
|
||||
processed = true;
|
||||
} else if (command.equalsIgnoreCase("GROUP_CONNECT")) {
|
||||
group = storage.getGroup(gid);
|
||||
|
|
|
@ -1519,6 +1519,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
|||
if (osMoPlugin.getService().isLoggedIn()) {
|
||||
app.getSettings().OSMO_USER_NAME.set("");
|
||||
app.getSettings().OSMO_USER_PWD.set("");
|
||||
app.getSettings().OSMO_DEVICE_KEY.set("");
|
||||
osMoPlugin.getService().reconnectToServer();
|
||||
updateStatus();
|
||||
osMoPlugin.getGroups().clearGroups();
|
||||
|
|
Loading…
Reference in a new issue