- Made OK/Cancel strings into library strings for easy overridability #157 (spacecowboy)
- Update build tools to 26.0.2 and update Dropbox sample to v2 API #155 (mitchyboy9)
-
added a static helper method for parsing activity results #138 (spacecowboy)
Thanks to @F43nd1r for #121
- Destroy Loader after finish to avoid clearing selections #137 (spacecowboy)
-
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
- Bump versions #113 (spacecowboy)
- Add ability to define a list divider in theme #99 (spacecowboy)
- Fix some of the samples #108 (spacecowboy)
- Use
srcCompat
for vector drawables #112 (spacecowboy)
- Add ability to enter a new filename #83 (spacecowboy)
- Select one file with a single click #92 (rastikw)
- Add a getItem method to FileItemAdapter #88 (spacecowboy)
- Add FastScroller sample implementation #89 (spacecowboy)
-
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.
-
Fix crash when creating dropbox directory 0a511ac
Also improves loading screen usage for directory creation.
Fixes #76
-
Show a progress bar when loading dropbox directory 9880562
Fixes #74
-
Add missing underscore 0351a69
Fixes #63
-
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
- Update README.md #68 (callmepeanut)
-
Change to the MPL e9211ff
To actually be compatible with Android and because it is more aligned with my interests.
Fixes #66
-
Hide hidden files in SD card picker by default #58 (dvrajan)
-
Add separator above OK/Cancel buttons 846c5e2
Fixes #60
-
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
- Make click events overridable #49 (spacecowboy)
- Make list focusable. #45 (spacecowboy)
- Do not override existing arguments #41 (spacecowboy)
- Update travis config to run on faster containers #42 (spacecowboy)
- Ensure toasts don't get queued up #39 (hcoosthuizen)
-
Remove all tags from library manifest 4a6e0ae
They are not needed in libraries and only result in conflicts. Fixes #34.
-
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
-
Specifying GPL3 or later #30 (spacecowboy)
-
Prefix resources 4124e8e
And add an overridable toolbar theme. Fixes #31
-
README example was slightly wrong. 5e14cb2
Fixes #26
-
Update LICENSE to mention or later 4f5c2de
Fixes #29
- Mention that start-path is configurable #20 (spacecowboy)