diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java b/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java
index 6170e8bf8a..f4a4d0ecfd 100644
--- a/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java
+++ b/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java
@@ -75,6 +75,7 @@ public class BinaryInspector {
// "-vstats",
// "/Users/victorshcherb/osmand/maps/Netherlands_europe_2.obf"
// "/Users/victorshcherb/osmand/maps/World_basemap_2.obf"
+
});
} else {
in.inspector(args);
diff --git a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java
index f2b16a9164..063ac68070 100644
--- a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java
+++ b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java
@@ -579,7 +579,6 @@ public class MapRenderingTypes {
// creation of only section
protected boolean onlyMap;
protected boolean onlyPoi;
- protected boolean lang;
// Needed only for map rules
protected int minzoom;
diff --git a/OsmAnd/res/layout-v14/check_item.xml b/OsmAnd/res/layout-v14/check_item.xml
new file mode 100644
index 0000000000..6d2888225d
--- /dev/null
+++ b/OsmAnd/res/layout-v14/check_item.xml
@@ -0,0 +1,7 @@
+
+
diff --git a/OsmAnd/res/layout-v14/osmo_groups_list_header.xml b/OsmAnd/res/layout-v14/osmo_groups_list_header.xml
deleted file mode 100644
index 6331f15422..0000000000
--- a/OsmAnd/res/layout-v14/osmo_groups_list_header.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/OsmAnd/res/layout/check_item.xml b/OsmAnd/res/layout/check_item.xml
new file mode 100644
index 0000000000..fd2020415d
--- /dev/null
+++ b/OsmAnd/res/layout/check_item.xml
@@ -0,0 +1,7 @@
+
+
diff --git a/OsmAnd/res/layout/osmo_groups_list_header.xml b/OsmAnd/res/layout/osmo_groups_list_header.xml
index 6f93cf8fb3..9e503ee25a 100644
--- a/OsmAnd/res/layout/osmo_groups_list_header.xml
+++ b/OsmAnd/res/layout/osmo_groups_list_header.xml
@@ -1,56 +1,77 @@
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/osmo_header_background"
+ android:orientation="vertical"
+ android:paddingLeft="@dimen/list_content_padding"
+ android:paddingRight="@dimen/list_content_padding" >
-
+
-
+
-
-
+
+
-
+
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml
index 3ae343c442..cb3cd275d2 100644
--- a/OsmAnd/res/values/sizes.xml
+++ b/OsmAnd/res/values/sizes.xml
@@ -49,7 +49,6 @@
16dp
48dp
- 56dp
80dp
60dp
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index b3c5a52bbc..07a7458d94 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -9,6 +9,7 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
+ Share my location
Log Off
Hide house numbers
Do you want OsmAnd to also copy its data files to the new destination?
diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java
index 23aa420bff..93e64fd53a 100644
--- a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java
+++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java
@@ -85,7 +85,6 @@ import android.view.ViewGroup;
import android.view.WindowManager;
import android.webkit.WebView;
import android.webkit.WebViewClient;
-import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
@@ -204,7 +203,16 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
private void setupHeader() {
header = getLayoutInflater().inflate(R.layout.osmo_groups_list_header, null);
getExpandableListView().addHeaderView(header);
+ ImageView iv = (ImageView) header.findViewById(R.id.share_my_location);
+ iv.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ shareSession();
+ }
+ });
CompoundButton trackr = (CompoundButton) header.findViewById(R.id.enable_tracker);
+ trackr.setText(R.string.osmo_share_my_location);
if(osMoPlugin != null && osMoPlugin.getTracker() != null){
trackr.setChecked(osMoPlugin.getTracker().isEnabledTracker());
}
@@ -233,6 +241,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
CompoundButton srvc = (CompoundButton) header.findViewById(R.id.enable_service);
srvc.setChecked(osMoPlugin.getService().isEnabled());
+ srvc.setText(R.string.osmo_start_service);
srvc.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
@@ -271,7 +280,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
TextView mtd = (TextView) header.findViewById(R.id.motd);
SessionInfo si = osMoPlugin.getService().getCurrentSessionInfo();
boolean visible = si != null && si.motd != null && si.motd.length() > 0;
- mtd.setVisibility(visible? View.VISIBLE:View.GONE);
+ mtd.setVisibility(visible ? View.VISIBLE : View.GONE);
if(visible) {
mtd.setText(si.motd);
mtd.setLinksClickable(true);
@@ -330,7 +339,8 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
supportInvalidateOptionsMenu();
if(service.isConnected()) {
header.findViewById(R.id.motd).setVisibility(View.VISIBLE);
- header.findViewById(R.id.enable_tracker).setVisibility(View.VISIBLE);
+ header.findViewById(R.id.share_my_location_layout).setVisibility(View.VISIBLE);
+ header.findViewById(R.id.share_my_location).setVisibility(tracker.isEnabledTracker() ? View.VISIBLE : View.GONE);
if (service.isLoggedIn()) {
getSupportActionBar().setTitle(app.getSettings().OSMO_USER_NAME.get());
} else {
@@ -338,7 +348,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
}
} else {
header.findViewById(R.id.motd).setVisibility(View.GONE);
- header.findViewById(R.id.enable_tracker).setVisibility(View.GONE);
+ header.findViewById(R.id.share_my_location_layout).setVisibility(View.GONE);
getSupportActionBar().setTitle(R.string.osmo);
}
}
diff --git a/eclipse-compile/appcompat/res/values/dimens.xml b/eclipse-compile/appcompat/res/values/dimens.xml
index 0d6fe754e2..41439fe5de 100644
--- a/eclipse-compile/appcompat/res/values/dimens.xml
+++ b/eclipse-compile/appcompat/res/values/dimens.xml
@@ -83,6 +83,6 @@
48dp
- 12dp
+ 24dp
30dp