From 76223ff8a7240f5c71c78a1ad0110687d734f265 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 25 Apr 2016 19:39:44 +0300 Subject: [PATCH] Fix path --- .../osmand/plus/dashboard/DashChooseAppDirFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashChooseAppDirFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashChooseAppDirFragment.java index 8d5b0ffe13..f2e1dc7e96 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashChooseAppDirFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashChooseAppDirFragment.java @@ -70,7 +70,7 @@ public class DashChooseAppDirFragment { private Dialog dlg; private int typeTemp = -1; - private File selectedFileTemp; + private String selectePathTemp; public ChooseAppDirFragment(Activity activity, Fragment f) { this.activity = activity; @@ -241,7 +241,7 @@ public class DashChooseAppDirFragment { && !DownloadActivity.hasPermissionToWriteExternalStorage(activity)) { typeTemp = types.get(which); - selectedFileTemp = new File(paths.get(which)); + selectePathTemp = paths.get(which); dialog.dismiss(); ActivityCompat.requestPermissions(activity, @@ -263,10 +263,10 @@ public class DashChooseAppDirFragment { } public void processPermissionGranted() { - if (typeTemp != -1 && selectedFileTemp != null) { + if (typeTemp != -1 && selectePathTemp != null) { mapsCopied = false; type = typeTemp; - selectedFile = selectedFileTemp; + selectedFile = new File(selectePathTemp); updateView(); } }