Differential D10905 Diff 28488 src/org/kde/kdeconnect/Plugins/SharePlugin/ShareSettingsActivity.java
Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/SharePlugin/ShareSettingsActivity.java
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 85 | if (path != null) { | |||
---|---|---|---|---|---|
90 | } else { | 90 | } else { | ||
91 | //Maybe permission was revoked | 91 | //Maybe permission was revoked | ||
92 | Log.w("SharePlugin", "Share destination is not writable, falling back to default path."); | 92 | Log.w("SharePlugin", "Share destination is not writable, falling back to default path."); | ||
93 | } | 93 | } | ||
94 | } | 94 | } | ||
95 | } | 95 | } | ||
96 | try { | 96 | try { | ||
97 | getDefaultDestinationDirectory().mkdirs(); | 97 | getDefaultDestinationDirectory().mkdirs(); | ||
98 | } catch(Exception e) { | 98 | } catch (Exception e) { | ||
99 | e.printStackTrace(); | 99 | e.printStackTrace(); | ||
100 | } | 100 | } | ||
101 | return DocumentFile.fromFile(getDefaultDestinationDirectory()); | 101 | return DocumentFile.fromFile(getDefaultDestinationDirectory()); | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | @TargetApi(Build.VERSION_CODES.KITKAT) | 104 | @TargetApi(Build.VERSION_CODES.KITKAT) | ||
105 | @Override | 105 | @Override | ||
106 | public void onActivityResult(int requestCode, int resultCode, Intent resultData) { | 106 | public void onActivityResult(int requestCode, int resultCode, Intent resultData) { | ||
Show All 19 Lines |