From e40e3268e1b05e28f1769fdb611a75a28f97c0c6 Mon Sep 17 00:00:00 2001 From: Sherry Zhou Date: Fri, 28 Apr 2023 22:07:38 +0000 Subject: [PATCH] Fix weather clock clipped when swiping in Lockscreen The cause is that layer will be clipped to the bound when alpha < 1.0 Test: atest KeyguardClockSwitchControllerTest, KeyguardStatusViewTest Bug: 279487893 Change-Id: I38929ee87c1025a2b863b2092e5cab41c6f9419f --- .../KeyguardClockSwitchController.java | 14 +++++++++++ .../android/keyguard/KeyguardStatusView.java | 25 +++++++++++++++++++ .../KeyguardStatusViewController.java | 3 ++- .../KeyguardClockSwitchControllerTest.java | 14 +++++++++-- .../keyguard/KeyguardStatusViewTest.kt | 10 ++++++++ 5 files changed, 63 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index d8bf570954df6..676f342775efa 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -178,6 +178,20 @@ public class KeyguardClockSwitchController extends ViewController