From f5231a9caf7aa00dd356a7d8da76dbabdbf37989 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 6 Dec 2014 18:07:25 +0100 Subject: [PATCH] Try a better fix for bug AND-197 --- .../src/net/osmand/plus/download/BaseDownloadActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/BaseDownloadActivity.java b/OsmAnd/src/net/osmand/plus/download/BaseDownloadActivity.java index 6647a8e08e..e2851738a7 100644 --- a/OsmAnd/src/net/osmand/plus/download/BaseDownloadActivity.java +++ b/OsmAnd/src/net/osmand/plus/download/BaseDownloadActivity.java @@ -51,7 +51,7 @@ public class BaseDownloadActivity extends SherlockFragmentActivity { if (downloadListIndexThread == null) { downloadListIndexThread = new DownloadIndexesThread(this); } - prepareDownloadDirectory(); +// prepareDownloadDirectory(); } public void updateDownloads() { @@ -60,6 +60,7 @@ public class BaseDownloadActivity extends SherlockFragmentActivity { } else { downloadListIndexThread.runReloadIndexFiles(); } + prepareDownloadDirectory(); } @@ -221,7 +222,7 @@ public class BaseDownloadActivity extends SherlockFragmentActivity { private void prepareDownloadDirectory() { if (getMyApplication().getResourceManager().getIndexFileNames().isEmpty()) { boolean showedDialog = false; - if ((Build.VERSION.SDK_INT < OsmandSettings.VERSION_DEFAULTLOCATION_CHANGED) && settings.getExternalStorageDirectory().getAbsolutePath().isEmpty()) { + if (Build.VERSION.SDK_INT < OsmandSettings.VERSION_DEFAULTLOCATION_CHANGED) { SuggestExternalDirectoryDialog.showDialog(this, null, null); } if (!showedDialog) {