This commit is contained in:
Alexey Kulish 2016-04-25 19:39:44 +03:00
parent 4623eede17
commit 76223ff8a7

View file

@ -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();
}
}