Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Latest commit

 

History

History
379 lines (195 loc) · 13.8 KB

CHANGELOG.md

File metadata and controls

379 lines (195 loc) · 13.8 KB

4.2.1

Fixed

  • Fixed RuntimeException with empty state in onSaveInstanceState #160 (jangrewe)

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.

3.1.0

Changed

3.0.1

Added

Changed

Fixed

3.0.0

Added

2.5.3

Added

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.

    Fixes #85, #84

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

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

  • Add Video Thumbnail preview and set default theme to light #53 (alishari)

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

  • Update to latest build tools and support library 23.0.1 #51 (alishari)

v2.4.0

Added

v2.3.1

Fixed

v2.3.0

Added

  • Handle runtime permissions in Android M. c2f4f05

    Fixes #24

v2.2.3

Fixed

Misc

v2.2.2

Changed

  • Update Dropbox library version 7090da9

    And remove mention of now deprecated API. Fixes #35

Fixed

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

  • Include link to change log in README 15c59b5

    Fixes #33

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

Misc

  • README example was slightly wrong. 5e14cb2

    Fixes #26

  • Update LICENSE to mention or later 4f5c2de

    Fixes #29

2.1.0

Changed

  • Make createdir depend only on CREATE_DIR argument 38f4ee2

    Fixes #25

Misc

v2.0.5

Fixed

v2.0.4

Fixed

v2.0.0

Added

  • Adding Dropbox Core sample d860af7

    Fixes #5

Fixed

v1.1.3

Fixed

  • Handle case if directory does not exist in FilePicker a17d655

    Fixes #4

v1.1.2

Misc

  • Update readme with maven info 3afc546

    Fixes #3

1.1.0

Changed

  • Picker now has more options 26b0595

    Removed onlyDirs in favor of a mode variable. Now possible to select between: Files, Dirs, or Both.

    The ability to create directories is now an option as well which defaults to false.

    Fixes #1, #2