Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3838c75b02
3 changed files with 16 additions and 2 deletions
|
@ -178,4 +178,8 @@ public class OsmAndAppCustomization {
|
|||
public int getWaypointSearchRadius(int searchDeviationRadius, int type) {
|
||||
return searchDeviationRadius;
|
||||
}
|
||||
|
||||
public File getExternalStorageDir() {
|
||||
return osmandSettings.getExternalStorageDirectory();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -750,7 +750,8 @@ public class OsmandApplication extends Application {
|
|||
if(path == null) {
|
||||
path = "";
|
||||
}
|
||||
return new File(getSettings().getExternalStorageDirectory(), IndexConstants.APP_DIR + path);
|
||||
|
||||
return new File(getAppCustomization().getExternalStorageDir(), IndexConstants.APP_DIR + path);
|
||||
}
|
||||
|
||||
public void applyTheme(Context c) {
|
||||
|
|
|
@ -10,6 +10,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import android.os.Environment;
|
||||
import android.widget.Toast;
|
||||
import net.osmand.IProgress;
|
||||
import net.osmand.IndexConstants;
|
||||
|
@ -92,6 +93,14 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
|||
}
|
||||
accessCodePref = osmandSettings.registerStringPreference(ACCESS_CODE, "").makeGlobal();
|
||||
toursFolder = new File(osmandSettings.getExternalStorageDirectory(), "osmand/tours");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getExternalStorageDir() {
|
||||
final String defaultLocation = Environment.getExternalStorageDirectory().getAbsolutePath();
|
||||
return new File(originalApi.getString(originalGlobal, OsmandSettings.EXTERNAL_STORAGE_DIR,
|
||||
defaultLocation));
|
||||
}
|
||||
|
||||
public boolean setAccessCode(String acCode) {
|
||||
|
|
Loading…
Reference in a new issue