|
1 | 1 |
|
| 2 | +## 4.0.1 |
| 3 | + |
| 4 | + |
| 5 | +### Fixed |
| 6 | + |
| 7 | +- Destroy Loader after finish to avoid clearing selections [\#137](https://github.com/spacecowboy/NoNonsense-FilePicker/pull/137) ([spacecowboy](https://github.com/spacecowboy)) |
| 8 | + |
2 | 9 | ## 4.0.0 |
3 | 10 |
|
4 | 11 |
|
5 | 12 | ### Breaking changes |
6 | 13 |
|
7 | 14 | - You are now required to define a `FileProvider` in your manifest for the SD-card picker [\#118](https://github.com/spacecowboy/NoNonsense-FilePicker/pull/118) ([spacecowboy](https://github.com/spacecowboy)) |
8 | 15 |
|
9 | | - |
| 16 | + |
10 | 17 | Due to recent changes in Android 7.0 Nougat, bare File URIs can no longer be returned in a safe way. This change requires you to add an entry to your manifest to use the included `FilePickerFragment` and change how you handle the results. |
11 | 18 | - You need to add the following to your app's `AndroidManifest.xml`: |
12 | | - |
| 19 | + |
13 | 20 | ``` xml |
14 | 21 | <provider |
15 | 22 | android:name="android.support.v4.content.FileProvider" |
|
22 | 29 | </provider> |
23 | 30 | ``` |
24 | 31 | - Then you must change your result handling. Here is a code snippet illustrating the change for a single result (the same applies to multiple results): |
25 | | - |
| 32 | + |
26 | 33 | ``` java |
27 | 34 | protected void onActivityResult(int requestCode, int resultCode, Intent intent) { |
28 | 35 | // The URI will now be something like content://PACKAGE-NAME/root/path/to/file |
|
34 | 41 | // Do something with the result... |
35 | 42 | } |
36 | 43 | ``` |
37 | | - |
| 44 | + |
38 | 45 | This change was required in order to fix `FileUriExposedException` being thrown on Android 7.0 Nougat, as reported in [#115](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/115) and [#107](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/107). |
39 | | - |
| 46 | + |
40 | 47 | Please see the updated [activity in the sample app](https://github.com/spacecowboy/NoNonsense-FilePicker/blob/master/sample/src/main/java/com/nononsenseapps/filepicker/sample/NoNonsenseFilePicker.java) for more examples. |
41 | 48 |
|
42 | 49 | ## 3.1.0 |
|
86 | 93 |
|
87 | 94 | This allows for better handling in case of denied/missing permissions, |
88 | 95 | as well the ability to request more fine-grained permissions. |
89 | | - |
| 96 | + |
90 | 97 | Fixes [\#85](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/85), [\#84](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/84) |
91 | 98 |
|
92 | 99 | ### Fixed |
93 | 100 |
|
94 | 101 | - Fix crash when creating dropbox directory [0a511ac](https://github.com/spacecowboy/NoNonsense-FilePicker/commit/0a511acb59fe02ad38d16bc0e4fd05c4a2cc6edb) |
95 | 102 |
|
96 | 103 | Also improves loading screen usage for directory creation. |
97 | | - |
| 104 | + |
98 | 105 | Fixes [\#76](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/76) |
99 | 106 |
|
100 | 107 | ## 2.5.2 |
|
116 | 123 | Fixes crash if user quickly taps on two different directories, |
117 | 124 | where loading directories take a while, like Dropbox or any |
118 | 125 | other network source. |
119 | | - |
| 126 | + |
120 | 127 | Fixes [\#73](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/73) |
121 | 128 | - Fix concurrent modification of adapter in dropbox sample [b7baea3](https://github.com/spacecowboy/NoNonsense-FilePicker/commit/b7baea37113435e2a8cb07ca5126b075a67ff128) |
122 | 129 |
|
|
135 | 142 |
|
136 | 143 | To actually be compatible with Android and because it |
137 | 144 | is more aligned with my interests. |
138 | | - |
| 145 | + |
139 | 146 | Fixes [\#66](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/66) |
140 | 147 |
|
141 | 148 | ## 2.5.0 |
|
166 | 173 | This Fixes an issue on older android versions (4.0.3) |
167 | 174 | where setting a tint on an imageview would incorrectly |
168 | 175 | color the entire image. |
169 | | - |
| 176 | + |
170 | 177 | Fixes [\#50](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/50) |
171 | 178 |
|
172 | 179 | ## v2.4.1 |
|
249 | 256 |
|
250 | 257 | Now possible to load the fragment even with existing |
251 | 258 | toolbar, as long as setupToolbar() is overriden. |
252 | | - |
| 259 | + |
253 | 260 | Fixes [\#32](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/32) |
254 | 261 |
|
255 | 262 | ### Changed |
|
337 | 344 |
|
338 | 345 | Removed onlyDirs in favor of a mode variable. Now possible to |
339 | 346 | select between: Files, Dirs, or Both. |
340 | | - |
| 347 | + |
341 | 348 | The ability to create directories is now an option as well |
342 | 349 | which defaults to false. |
343 | | - |
| 350 | + |
344 | 351 | Fixes [\#1](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/1), [\#2](https://github.com/spacecowboy/NoNonsense-FilePicker/issues/2) |
0 commit comments