kivy / plyer

Plyer is a platform-independent Python wrapper for platform-dependent APIs
https://plyer.readthedocs.io
MIT License
1.56k stars 424 forks source link

Fix `_get_sdcard_dir` for Android API < 24 #781

Closed DexerBR closed 8 months ago

DexerBR commented 8 months ago

getStorageVolumes is available starting from [API 24](https://developer.android.com/reference/android/os/storage/StorageManager#getStorageVolumes()), so the code needs to be fixed to work on lower APIs.

misl6 commented 8 months ago

The PEP8 Check is complaining, but not your fault.