From 4ae7acd3f43ec53d1568bf28a929db574bdde9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=20=EC=A1=B0?= Date: Thu, 1 Jan 2015 12:55:36 +0100 Subject: [PATCH 1/4] Translated using Weblate (Korean) Currently translated at 100.0% (609 of 609 strings) --- OsmAnd/res/values-ko/phrases.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/res/values-ko/phrases.xml b/OsmAnd/res/values-ko/phrases.xml index 73ca50892d..274f70a114 100644 --- a/OsmAnd/res/values-ko/phrases.xml +++ b/OsmAnd/res/values-ko/phrases.xml @@ -642,4 +642,5 @@ 워터 슬라이드 타워 + 아쿠아리움 From 6130ec93d433089cfa303323487116d0e5697188 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 1 Jan 2015 13:02:24 +0100 Subject: [PATCH 2/4] Prior fix worked only sometimes, unclear why --- .../net/osmand/plus/activities/FavouritesListFragment.java | 6 ++++++ .../src/net/osmand/plus/dashboard/DashUpdatesFragment.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java index 83b6da214a..400096c23f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java @@ -57,6 +57,12 @@ public class FavouritesListFragment extends SherlockListFragment implements Sear OsmandApplication app = (OsmandApplication) getApplication(); favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints()); setListAdapter(favouritesAdapter); + + //Ckeck if this fixes that lists are still sometimes empty when returning from the map screen + View view = getView(); + if (view != null) { + view.invalidate(); + } } private OsmandApplication getApplication() { diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java index 5d209379bc..5eb1a35e5b 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java @@ -58,6 +58,12 @@ public class DashUpdatesFragment extends DashBaseFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + + //Ckeck if this fixes that lists are still sometimes empty when returning from the map screen + View view = getView(); + if (view != null) { + view.invalidate(); + } } @Override From fa02bdcf560fad6aaf1f5bdb78331eb4c759afc5 Mon Sep 17 00:00:00 2001 From: jan madsen Date: Thu, 1 Jan 2015 13:21:20 +0100 Subject: [PATCH 3/4] Translated using Weblate (Danish) Currently translated at 100.0% (609 of 609 strings) --- OsmAnd/res/values-da/phrases.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/res/values-da/phrases.xml b/OsmAnd/res/values-da/phrases.xml index 9c9c5a3083..7124334669 100644 --- a/OsmAnd/res/values-da/phrases.xml +++ b/OsmAnd/res/values-da/phrases.xml @@ -660,4 +660,5 @@ Vandrutsjebane Tårn + Akvarie From 4d9a2e871a8dfeae1980571c2514ad7fea93fa99 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 1 Jan 2015 13:27:53 +0100 Subject: [PATCH 4/4] All invalidate() only solved the empty-list issue sometimes, while it still appeared on other occasions. So back out to make way for a better fix --- .../plus/activities/FavouritesListFragment.java | 12 ------------ .../osmand/plus/dashboard/DashUpdatesFragment.java | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java index 400096c23f..b0d1f70c1c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java @@ -57,12 +57,6 @@ public class FavouritesListFragment extends SherlockListFragment implements Sear OsmandApplication app = (OsmandApplication) getApplication(); favouritesAdapter = new FavouritesAdapter(activity, app.getFavorites().getFavouritePoints()); setListAdapter(favouritesAdapter); - - //Ckeck if this fixes that lists are still sometimes empty when returning from the map screen - View view = getView(); - if (view != null) { - view.invalidate(); - } } private OsmandApplication getApplication() { @@ -92,12 +86,6 @@ public class FavouritesListFragment extends SherlockListFragment implements Sear } } locationUpdate(location); - - //This fixes the "all lists are empty when returning to the Dashboard" issue, but should likely be placed more centrally, like in MainMenuActivity? - View view = getView(); - if (view != null) { - view.invalidate(); - } } @Override diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java index 5eb1a35e5b..660bad87d2 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java @@ -58,12 +58,6 @@ public class DashUpdatesFragment extends DashBaseFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - - //Ckeck if this fixes that lists are still sometimes empty when returning from the map screen - View view = getView(); - if (view != null) { - view.invalidate(); - } } @Override @@ -75,12 +69,6 @@ public class DashUpdatesFragment extends DashBaseFragment { cancelButton = null; } updatedDownloadsList(BaseDownloadActivity.downloadListIndexThread.getItemsToUpdate()); - - //This fixes the "all lists are empty when returning to the Dashboard" issue, but should likely be placed more centrally, like in MainMenuActivity? - View view = getView(); - if (view != null) { - view.invalidate(); - } } public void updatedDownloadsList(List list) {