summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/LockIconView.java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2021-06-01 14:45:23 +0200
committerSelim Cinek <cinek@google.com>2021-06-01 15:01:12 +0200
commitaca32441ea53a03319661f9cf5edb74c1f6f0772 (patch)
treeb2d36f50a20ba0ec1010b070a485b83ff17d3bb4 /packages/SystemUI/src/com/android/keyguard/LockIconView.java
parentee4d86d0c1f04fdb676ae67d508ca92b167c30b9 (diff)
Fading out keyguard only content instead of occluding them with the scrim
The scrim is also used on the lock screen and should therefore be behind the keyguard elements. Instead, we now fade out the views on top of the scrim to achieve the same visual effect. This also fixed an issue where the inset on the scrim was wrong in landscape Fixes: 188660106 Test: drag down on lockscreen, observe content fading out Change-Id: I72e6b964dde5ad3c579a0db71d7914f3e47eab6c
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconView.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/LockIconView.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconView.java b/packages/SystemUI/src/com/android/keyguard/LockIconView.java
index 2167876d9cb6..eff412e49836 100644
--- a/packages/SystemUI/src/com/android/keyguard/LockIconView.java
+++ b/packages/SystemUI/src/com/android/keyguard/LockIconView.java
@@ -87,6 +87,11 @@ public class LockIconView extends ImageView {
updateSensorRect(h, w);
}
+ @Override
+ public boolean hasOverlappingRendering() {
+ return false;
+ }
+
float getLocationTop() {
return mLockIconCenter.y - mRadius;
}