2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Create destination directory in case it doesn't exist

This commit is contained in:
Albert Vaca
2018-01-07 16:51:09 +01:00
parent e94959f9c3
commit 92300a7d63

View File

@@ -93,6 +93,11 @@ public class ShareSettingsActivity extends PluginSettingsActivity {
} }
} }
} }
try {
getDefaultDestinationDirectory().mkdirs();
} catch(Exception e) {
e.printStackTrace();
}
return DocumentFile.fromFile(getDefaultDestinationDirectory()); return DocumentFile.fromFile(getDefaultDestinationDirectory());
} }