Fix path
This commit is contained in:
parent
4623eede17
commit
76223ff8a7
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue