Merge "Prevent improper requestLayout calls from lockscreen changing y position" into main
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
index 5646abe..12a0770 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
@@ -18,6 +18,7 @@
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 void setLockscreenClockY(int clockY) {
if (mView.screenOffsetYPadding != clockY) {
mView.screenOffsetYPadding = clockY;
- mView.updateClockTargetRegions();
+ mView.post(() -> mView.updateClockTargetRegions());
}
}