ChiliLabs / ChiliPhotoPicker

Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.
Apache License 2.0
405 stars 45 forks source link

Allow Action not Working #32

Open tolgatasci opened 11 months ago

tolgatasci commented 11 months ago

Hello, everythink is working and other API version OK. But I have higgest api phone. It isn't working. I used other emulator api 27. Everythinks OK

My Phone Information

S23 ULTRA
Android Version : 13
compileSdk 33
minSdk 26
targetSdk 33 
semihyilmaz commented 11 months ago

Hello, Did you solve the problem?

tolgatasci commented 11 months ago

:( no

tolgatasci commented 7 months ago

isPermissionGranted bu fonksiyonda Manifest.permission.READ_EXTERNAL_STORAGE istiyor ancak 30 üstünde bunun yerine Manifest.permission.READ_MEDIA_IMAGES bu izni alması gerekiyor.

PhotoPickerFragment dosyasında private var grand_read_external = "" override fun onCreate(savedInstanceState: Bundle?) { ... grand_read_external = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) Manifest.permission.READ_MEDIA_IMAGES else Manifest.permission.READ_EXTERNAL_STORAGE

isPermissionGranted(grand_read_external)

bu fonksiyonu gördüğünde bu değişken ile değiştirdiğinde düzeliyor. Ben böyle çözdüm.