Skip to content
Snippets Groups Projects
Commit 925853a9 authored by Hawkwood Glazier's avatar Hawkwood Glazier Committed by Android (Google) Code Review
Browse files

Merge "Prevent improper requestLayout calls from lockscreen changing y position" into main

parents a603f0b6 9e402a47
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ package com.android.keyguard;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import static com.android.keyguard.KeyguardClockSwitch.LARGE;
import static com.android.keyguard.KeyguardClockSwitch.SMALL;
import static com.android.systemui.flags.Flags.LOCKSCREEN_WALLPAPER_DREAM_ENABLED;
......@@ -208,7 +209,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
public void setLockscreenClockY(int clockY) {
if (mView.screenOffsetYPadding != clockY) {
mView.screenOffsetYPadding = clockY;
mView.updateClockTargetRegions();
mView.post(() -> mView.updateClockTargetRegions());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment