From e9a8819a8c8b8194ddebe7eebc65862eaa787a97 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 3 Apr 2018 20:42:56 +0200 Subject: [PATCH] Update small issues --- .../res/layout/fragment_edit_poi_advanced.xml | 1 - OsmAnd/res/layout/fragment_live_updates.xml | 3 +- .../res/layout/fragment_mapillary_filters.xml | 5 +- OsmAnd/res/layout/gpx_tab.xml | 2 +- .../layout/quick_action_add_poi_layout.xml | 1 - OsmAnd/res/layout/sherpafy_browse_tour.xml | 20 ----- .../res/layout/sherpafy_drawer_list_item.xml | 26 ------- OsmAnd/res/layout/sherpafy_list_tour_item.xml | 77 ------------------- OsmAnd/res/layout/sherpafy_stage_info.xml | 75 ------------------ .../res/layout/sherpafy_stage_list_item.xml | 56 -------------- .../ContributionVersionActivity.java | 10 ++- 11 files changed, 11 insertions(+), 265 deletions(-) delete mode 100644 OsmAnd/res/layout/sherpafy_browse_tour.xml delete mode 100644 OsmAnd/res/layout/sherpafy_drawer_list_item.xml delete mode 100644 OsmAnd/res/layout/sherpafy_list_tour_item.xml delete mode 100644 OsmAnd/res/layout/sherpafy_stage_info.xml delete mode 100644 OsmAnd/res/layout/sherpafy_stage_list_item.xml diff --git a/OsmAnd/res/layout/fragment_edit_poi_advanced.xml b/OsmAnd/res/layout/fragment_edit_poi_advanced.xml index c9058224b2..35f54f54bc 100644 --- a/OsmAnd/res/layout/fragment_edit_poi_advanced.xml +++ b/OsmAnd/res/layout/fragment_edit_poi_advanced.xml @@ -12,7 +12,6 @@ android:layout_height="wrap_content"> diff --git a/OsmAnd/res/layout/fragment_live_updates.xml b/OsmAnd/res/layout/fragment_live_updates.xml index dd7b00a096..65840afe10 100644 --- a/OsmAnd/res/layout/fragment_live_updates.xml +++ b/OsmAnd/res/layout/fragment_live_updates.xml @@ -1,12 +1,11 @@ - - - --> - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_drawer_list_item.xml b/OsmAnd/res/layout/sherpafy_drawer_list_item.xml deleted file mode 100644 index b3a7ac9134..0000000000 --- a/OsmAnd/res/layout/sherpafy_drawer_list_item.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_list_tour_item.xml b/OsmAnd/res/layout/sherpafy_list_tour_item.xml deleted file mode 100644 index b909680026..0000000000 --- a/OsmAnd/res/layout/sherpafy_list_tour_item.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_stage_info.xml b/OsmAnd/res/layout/sherpafy_stage_info.xml deleted file mode 100644 index 7b1ddf3e45..0000000000 --- a/OsmAnd/res/layout/sherpafy_stage_info.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_stage_list_item.xml b/OsmAnd/res/layout/sherpafy_stage_list_item.xml deleted file mode 100644 index 9fde746341..0000000000 --- a/OsmAnd/res/layout/sherpafy_stage_list_item.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java index 81bb2ccb1d..048f272d6b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java @@ -14,10 +14,10 @@ import android.widget.ArrayAdapter; import android.widget.Filterable; import android.widget.TextView; import android.widget.Toast; - import net.osmand.AndroidUtils; import net.osmand.osm.io.NetworkUtils; import net.osmand.plus.R; +import net.osmand.plus.Version; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserFactory; @@ -41,8 +41,8 @@ public class ContributionVersionActivity extends OsmandListActivity { private static final int INSTALL_BUILD = 2; private static final int ACTIVITY_TO_INSTALL = 23; - private static final String URL_TO_RETRIEVE_BUILDS = "http://download.osmand.net/builds.php"; - private static final String URL_GET_BUILD = "http://download.osmand.net/"; + private static final String URL_TO_RETRIEVE_BUILDS = "https://download.osmand.net/builds.php"; + private static final String URL_GET_BUILD = "https://download.osmand.net/"; private ProgressDialog progressDlg; private Date currentInstalledDate; @@ -158,7 +158,9 @@ public class ContributionVersionActivity extends OsmandListActivity { } } OsmAndBuild build = new OsmAndBuild(path, size, d, tag); - downloadedBuilds.add(build); + if(!Version.isFreeVersion(getMyApplication()) || path.contains("default")) { + downloadedBuilds.add(build); + } } } }