Skip to content

Commit ff4b7ce

Browse files
committed
Fix the problem when download a new layout after the export gpx directory changed
1 parent 194ef29 commit ff4b7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/net/osmtracker/layout/DownloadCustomLayoutTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected Boolean doInBackground(String[] layoutData) {
4444
String layoutFolderName = layoutName.replace(" ", "_");
4545
String iso = layoutData[1];
4646
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
47-
String storageDir =prefs.getString(OSMTracker.Preferences.KEY_STORAGE_DIR, OSMTracker.Preferences.VAL_STORAGE_DIR);
47+
String storageDir = File.separator + OSMTracker.Preferences.VAL_STORAGE_DIR;
4848

4949
String layoutURL = URLCreator.createLayoutFileURL(context, layoutFolderName, iso);
5050
String layoutPath = Environment.getExternalStorageDirectory() + storageDir + File.separator +

0 commit comments

Comments
 (0)