14 KiB
Newer release notes can be found in releases.
4.2.1
Fixed
4.2.0
Added
- Made OK/Cancel strings into library strings for easy overridability #157 (spacecowboy)
Changed
- Update build tools to 26.0.2 and update Dropbox sample to v2 API #155 (mitchyboy9)
4.1.0
Added
-
added a static helper method for parsing activity results #138 (spacecowboy)
Thanks to @F43nd1r for #121
4.0.1
Fixed
- Destroy Loader after finish to avoid clearing selections #137 (spacecowboy)
4.0.0
Breaking changes
-
You are now required to define a
FileProvider
in your manifest for the SD-card picker #118 (spacecowboy)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.- You need to add the following to your app's
AndroidManifest.xml
:
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/nnf_provider_paths" /> </provider>
- 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):
protected void onActivityResult(int requestCode, int resultCode, Intent intent) { // The URI will now be something like content://PACKAGE-NAME/root/path/to/file Uri uri = intent.getData(); // A new utility method is provided to transform the URI to a File object File file = com.nononsenseapps.filepicker.Utils.getFileForUri(uri); // If you want a URI which matches the old return value, you can do Uri fileUri = Uri.fromFile(file); // Do something with the result... }
This change was required in order to fix
FileUriExposedException
being thrown on Android 7.0 Nougat, as reported in #115 and #107.Please see the updated activity in the sample app for more examples.
- You need to add the following to your app's
3.1.0
Changed
- Bump versions #113 (spacecowboy)
3.0.1
Added
- Add ability to define a list divider in theme #99 (spacecowboy)
Changed
Fixed
- Fix some of the samples #108 (spacecowboy)
- Use
srcCompat
for vector drawables #112 (spacecowboy)
3.0.0
Added
- Add ability to enter a new filename #83 (spacecowboy)
- Select one file with a single click #92 (rastikw)
2.5.3
Added
- Add a getItem method to FileItemAdapter #88 (spacecowboy)
- Add FastScroller sample implementation #89 (spacecowboy)
Changed
-
Pass path into permission and refresh handlers c9d7035
This allows for better handling in case of denied/missing permissions, as well the ability to request more fine-grained permissions.
Fixed
-
Fix crash when creating dropbox directory 0a511ac
Also improves loading screen usage for directory creation.
Fixes #76
2.5.2
Changed
-
Show a progress bar when loading dropbox directory 9880562
Fixes #74
-
Add missing underscore 0351a69
Fixes #63
Fixed
-
Do not load directory again if already loading c83ad0a
Fixes crash if user quickly taps on two different directories, where loading directories take a while, like Dropbox or any other network source.
Fixes #73
-
Fix concurrent modification of adapter in dropbox sample b7baea3
Fixes #75
Misc
- Update README.md #68 (callmepeanut)
2.5.1
Changed
-
Change to the MPL e9211ff
To actually be compatible with Android and because it is more aligned with my interests.
Fixes #66
2.5.0
Changed
-
Hide hidden files in SD card picker by default #58 (dvrajan)
-
Add separator above OK/Cancel buttons 846c5e2
Fixes #60
v2.4.2
Added
Changed
Fixed
-
Change to special image viewtypes for sample aa53b90
This Fixes an issue on older android versions (4.0.3) where setting a tint on an imageview would incorrectly color the entire image.
Fixes #50
v2.4.1
Changed
v2.4.0
Added
- Make click events overridable #49 (spacecowboy)
v2.3.1
Fixed
- Make list focusable. #45 (spacecowboy)
v2.3.0
Added
v2.2.3
Fixed
- Do not override existing arguments #41 (spacecowboy)
Misc
- Update travis config to run on faster containers #42 (spacecowboy)
v2.2.2
Changed
Fixed
- Ensure toasts don't get queued up #39 (hcoosthuizen)
v2.2.1
Fixed
-
Remove all tags from library manifest 4a6e0ae
They are not needed in libraries and only result in conflicts. Fixes #34.
Misc
2.2.0
Added
-
Fragment can now be used together with action bar 2ede72d
Now possible to load the fragment even with existing toolbar, as long as setupToolbar() is overriden.
Fixes #32
Changed
-
Specifying GPL3 or later #30 (spacecowboy)
-
Prefix resources 4124e8e
And add an overridable toolbar theme. Fixes #31
Misc
-
README example was slightly wrong. 5e14cb2
Fixes #26
-
Update LICENSE to mention or later 4f5c2de
Fixes #29
2.1.0
Changed
Misc
- Mention that start-path is configurable #20 (spacecowboy)