ChiliPhotoPicker icon indicating copy to clipboard operation
ChiliPhotoPicker copied to clipboard

Allow Action not Working

Open tolgatasci opened this issue 1 year ago • 3 comments

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 

tolgatasci avatar Sep 20 '23 13:09 tolgatasci

Hello, Did you solve the problem?

semihyilmaz avatar Oct 04 '23 10:10 semihyilmaz

:( no

tolgatasci avatar Oct 04 '23 18:10 tolgatasci

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.

tolgatasci avatar Jan 19 '24 05:01 tolgatasci