Fix small issues
This commit is contained in:
parent
a09401fcc7
commit
2d75e8351b
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ package net.osmand.plus.activities;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.osmand.IProgress;
|
||||||
import net.osmand.access.AccessibleToast;
|
import net.osmand.access.AccessibleToast;
|
||||||
import net.osmand.plus.ApplicationMode;
|
import net.osmand.plus.ApplicationMode;
|
||||||
import net.osmand.plus.ClientContext;
|
import net.osmand.plus.ClientContext;
|
||||||
|
@ -280,7 +281,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<String> doInBackground(Void... params) {
|
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) {
|
protected void onPostExecute(List<String> result) {
|
||||||
|
|
|
@ -23,6 +23,7 @@ public class SuggestExternalDirectoryDialog {
|
||||||
Builder bld = new AlertDialog.Builder(a);
|
Builder bld = new AlertDialog.Builder(a);
|
||||||
HashSet<String> externalMounts = getExternalMounts();
|
HashSet<String> externalMounts = getExternalMounts();
|
||||||
String apath = app.getSettings().getExternalStorageDirectory().getAbsolutePath();
|
String apath = app.getSettings().getExternalStorageDirectory().getAbsolutePath();
|
||||||
|
externalMounts.add(app.getExternalServiceAPI().getExternalStorageDirectory());
|
||||||
externalMounts.add(apath);
|
externalMounts.add(apath);
|
||||||
final String[] extMounts = new String[showOther ? externalMounts.size()+1 : externalMounts.size()];
|
final String[] extMounts = new String[showOther ? externalMounts.size()+1 : externalMounts.size()];
|
||||||
externalMounts.toArray(extMounts);
|
externalMounts.toArray(extMounts);
|
||||||
|
|
Loading…
Reference in a new issue