Ui over flow Issue with android 15 device
Summary
Edit Phot screen overflowed status bar and user cant click correct button
Android version
Android 15
Impacted devices
Google pixel 9
Installation method
gradle
SDK version
implementation 'com.github.dhaval2404:imagepicker:2.1'
Other information
we can fix it adding this to activity oncreate method add it and update the pluging if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { window.decorView.setOnApplyWindowInsetsListener { v, insets -> val bars = insets.getInsets( WindowInsetsCompat.Type.systemBars() or WindowInsetsCompat.Type.displayCutout() ) v.updatePadding( left = bars.left, top = bars.top, right = bars.right, bottom = bars.bottom ) WindowInsets.CONSUMED } }
Im having the same problem, pixel 8 pro with android 15
I am having same issue with Xiaomi device, not able to accept or decline cropped image
Same here
same issue with Google Pixel 8
Since this repo seems to be stale: In case someone stumbles upon this thread, I fixed this issue in my fork, see: https://github.com/Catlandor/ImagePicker It's published to Maven Central.
You need to add this to your project manifest:
<activity
android:name="com.yalantis.ucrop.UCropActivity"
tools:node="replace"
tools:ignore="AppLinkUrlError"
android:screenOrientation="portrait"
android:theme="@style/Theme.Ucrop.Custom" />
Then you need to edit your themes.xml (or styles.xml etc) and add:
<style name="Theme.Ucrop.Custom" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Carry over anything you need from the library's default UCrop style -->
</style>
and also create a v35 copy of your themes.xml (or whatever) containing:
<style name="Theme.Ucrop.Custom" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Carry over anything you need from the library's default UCrop style -->
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
<!-- Optionally adjust status bar color, toolbar color, etc. -->
</style>
If that doesn't work let me know, I did make other changes (which didn't work) but maybe they helped in someway I haven't figured out yet.
@Seoras It works on me. THKs
@Seoras Now it working.. Thanks....
@Seoras sadly, opting out edge-to-edge enforcement is removed in Android 16
@Seoras can not access com.yalantis.ucrop.UCropActivity in my project manifest.
<activity
android:name="com.yalantis.ucrop.UCropActivity"
tools:node="replace"
tools:ignore="AppLinkUrlError"
android:screenOrientation="portrait"
android:theme="@style/Theme.Ucrop.Custom" />
how to add it to my manifest ??
@Seoras can not access com.yalantis.ucrop.UCropActivity in my project manifest.
how to add it to my manifest ?? This library internally uses the uCrop library for image cropping, so use implementation 'com.github.yalantis:ucrop:2.2.10' then try @Seoras 's fix
@Seoras sadly, opting out edge-to-edge enforcement is removed in Android 16
I've tested on Android 16 and it appears to still work as intended. I'd be surprised if Google removed this opt out option so soon as it'll affect end users more than developers.
@Seoras sadly, opting out edge-to-edge enforcement is removed in Android 16
I've tested on Android 16 and it appears to still work as intended. I'd be surprised if Google removed this opt out option so soon as it'll affect end users more than developers.
Have you set your appstargetSdk to 36? Opting out edge-to-edge enforcement is removed when targeting 36.
https://developer.android.com/about/versions/16/behavior-changes-16#edge-to-edge
I found this fork of library that is up-to-date and edge-to-edge is handled properly:
https://github.com/Catlandor/ImagePicker
getting the same issue in android 16 devices
We need a solution!!! Please, fix
I had to fork, and I fixed the issue in my own fork https://github.com/maleeqB/ImagePicker
@maleeqB I really appreciate it — this solution works perfectly on my side as well. Thanks again for your help!