From 2d75e8351b24861ee6cb5658b057af0818fb93e7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 18 May 2013 17:42:03 +0200 Subject: [PATCH] Fix small issues --- .../net/osmand/plus/activities/SettingsGeneralActivity.java | 3 ++- .../net/osmand/plus/base/SuggestExternalDirectoryDialog.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java index 77a867e8c4..ea7b22d227 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java @@ -4,6 +4,7 @@ package net.osmand.plus.activities; import java.io.File; import java.util.List; +import net.osmand.IProgress; import net.osmand.access.AccessibleToast; import net.osmand.plus.ApplicationMode; import net.osmand.plus.ClientContext; @@ -280,7 +281,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity { @Override protected List doInBackground(Void... params) { - return getMyApplication().getResourceManager().reloadIndexes(new ProgressDialogImplementation(SettingsGeneralActivity.this, null, false)); + return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS); } protected void onPostExecute(List result) { diff --git a/OsmAnd/src/net/osmand/plus/base/SuggestExternalDirectoryDialog.java b/OsmAnd/src/net/osmand/plus/base/SuggestExternalDirectoryDialog.java index f9243830ce..fda501fac5 100644 --- a/OsmAnd/src/net/osmand/plus/base/SuggestExternalDirectoryDialog.java +++ b/OsmAnd/src/net/osmand/plus/base/SuggestExternalDirectoryDialog.java @@ -23,6 +23,7 @@ public class SuggestExternalDirectoryDialog { Builder bld = new AlertDialog.Builder(a); HashSet externalMounts = getExternalMounts(); String apath = app.getSettings().getExternalStorageDirectory().getAbsolutePath(); + externalMounts.add(app.getExternalServiceAPI().getExternalStorageDirectory()); externalMounts.add(apath); final String[] extMounts = new String[showOther ? externalMounts.size()+1 : externalMounts.size()]; externalMounts.toArray(extMounts);