From bd41be16e01b70018ca0a5ede1ca61e0a64e3f27 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Tue, 1 Apr 2014 19:24:41 +0200 Subject: [PATCH 1/2] Fix issue with 1.7.3 --- .../net/osmand/plus/activities/NavigatePointFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index dbd9f2dea0..d50909d396 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -70,9 +70,9 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct } initUI(loc.getLatitude(), loc.getLongitude()); if(savedInstanceState != null && savedInstanceState.containsKey(SEARCH_LAT) && savedInstanceState.containsKey(SEARCH_LON)) { - String lat = savedInstanceState.getString(SEARCH_LAT, ""); - String lon = savedInstanceState.getString(SEARCH_LON, ""); - if(lat.length() > 0 && lon.length() > 0) { + String lat = savedInstanceState.getString(SEARCH_LAT); + String lon = savedInstanceState.getString(SEARCH_LON); + if(lat != null && lon != null && lat.length() > 0 && lon.length() > 0) { ((Spinner)view.findViewById(R.id.Format)).setSelection(savedInstanceState.getInt(SELECTION, 0)); currentFormat = savedInstanceState.getInt(SELECTION, 0); ((TextView)view.findViewById(R.id.LatitudeEdit)).setText(lat); From 3035b33c890e1a3fc940f79ad258add90eaa22a1 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Wed, 2 Apr 2014 00:14:37 +0200 Subject: [PATCH 2/2] Fix free downloads --- OsmAnd/src/net/osmand/plus/OsmandSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index da5a73c431..0afec54788 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -1542,7 +1542,7 @@ public class OsmandSettings { - public final OsmandPreference NUMBER_OF_FREE_DOWNLOADS = new IntPreference("free_downloads_v1", 0).makeGlobal(); + public final OsmandPreference NUMBER_OF_FREE_DOWNLOADS = new IntPreference("free_downloads_v2", 0).makeGlobal(); public boolean checkFreeDownloadsNumberZero(){ if(!settingsAPI.contains(globalPreferences,NUMBER_OF_FREE_DOWNLOADS.getId())){