From 0f2417146e995e7a2861d496c3166b7cb6a1e5a2 Mon Sep 17 00:00:00 2001 From: jan madsen Date: Thu, 1 Jan 2015 12:18:34 +0100 Subject: [PATCH 1/3] Translated using Weblate (Danish) Currently translated at 100.0% (608 of 608 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 09c8597904..9c9c5a3083 100644 --- a/OsmAnd/res/values-da/phrases.xml +++ b/OsmAnd/res/values-da/phrases.xml @@ -659,4 +659,5 @@ Tog (attraktion) Vandrutsjebane + Tårn From f56b1fd45379e2ce4e1fcf9bfe5157afe32e7adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=20=EC=A1=B0?= Date: Thu, 1 Jan 2015 12:20:07 +0100 Subject: [PATCH 2/3] Translated using Weblate (Korean) Currently translated at 100.0% (608 of 608 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 cd9dc16a17..73ca50892d 100644 --- a/OsmAnd/res/values-ko/phrases.xml +++ b/OsmAnd/res/values-ko/phrases.xml @@ -641,4 +641,5 @@ 기차 (명소) 워터 슬라이드 + 타워 From a97e3f9f404a00f1c320ec2c4b56bf82c64c72b1 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 1 Jan 2015 12:22:23 +0100 Subject: [PATCH 3/3] Move invalidtae to list fragment,s does no seem to work in Base --- .../plus/activities/FavouritesListFragment.java | 6 ++++++ .../net/osmand/plus/dashboard/DashBaseFragment.java | 11 ----------- .../osmand/plus/dashboard/DashUpdatesFragment.java | 6 ++++++ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java index b0d1f70c1c..83b6da214a 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesListFragment.java @@ -86,6 +86,12 @@ 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/DashBaseFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashBaseFragment.java index 16d4550ff1..f6411de761 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashBaseFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashBaseFragment.java @@ -2,7 +2,6 @@ package net.osmand.plus.dashboard; import com.actionbarsherlock.app.SherlockFragment; import net.osmand.plus.OsmandApplication; -import android.view.View; /** * Created by Denis on 24.11.2014. @@ -13,14 +12,4 @@ public class DashBaseFragment extends SherlockFragment { return (OsmandApplication) getActivity().getApplication(); } - @Override - public void onResume() { - super.onResume(); - //This fixes the "list are empty when returning to the Dashboard" issue - View view = getView(); - if (view != null) { - view.invalidate(); - } - } - } diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java index 660bad87d2..5d209379bc 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashUpdatesFragment.java @@ -69,6 +69,12 @@ 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) {