Assigned
Status Update
Comments
nu...@gmail.com <nu...@gmail.com> #2
I face with the same problem. I have different pageMargin in landscape and portrait and when viewpager is scrolled for the more than first position, after rotating device it is shifted.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
Description
Component used: androidx.appcompat Version used: 1.7.0 Devices/Android versions reproduced on: any
In my project I have enabled edge-to-edge mode by calling
EdgeToEdge.enable(activity)
. I have cleared the translucent flags for status and navigation bar. My layout contains custom guard views for the status bar and the navigation bar. In other words I want to manage the status and navigation bar appearance myself.This works but when I enter action mode via
activity.startSupportActionMode(callback)
the status bar changes to black. I could not find any way to change that behavior.It seems like
AppCompatDelegateImpl
maintains its own status bar guard that appears above mine and the colors for that guard are hard-coded to black and white (R.color.abc_decor_view_status_guard_light
andR.color.abc_decor_view_status_guard
), depending on the value ofSYSTEM_UI_FLAG_LIGHT_STATUS_BAR
.Is there a way to disable that status bar guard?