Fix small issues

This commit is contained in:
Victor Shcherb 2013-05-18 17:42:03 +02:00
parent a09401fcc7
commit 2d75e8351b
2 changed files with 3 additions and 1 deletions

View file

@ -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<String> doInBackground(Void... params) {
return getMyApplication().getResourceManager().reloadIndexes(new ProgressDialogImplementation(SettingsGeneralActivity.this, null, false));
return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS);
}
protected void onPostExecute(List<String> result) {

View file

@ -23,6 +23,7 @@ public class SuggestExternalDirectoryDialog {
Builder bld = new AlertDialog.Builder(a);
HashSet<String> 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);