diff options
author | Selim Cinek <cinek@google.com> | 2021-06-01 14:45:23 +0200 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2021-06-01 15:01:12 +0200 |
commit | aca32441ea53a03319661f9cf5edb74c1f6f0772 (patch) | |
tree | b2d36f50a20ba0ec1010b070a485b83ff17d3bb4 /packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | |
parent | ee4d86d0c1f04fdb676ae67d508ca92b167c30b9 (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/LockIconViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java index 6b85ba8420fc..ccc487925fe4 100644 --- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java @@ -451,4 +451,11 @@ public class LockIconViewController extends ViewController<LockIconView> impleme private final AccessibilityManager.TouchExplorationStateChangeListener mTouchExplorationStateChangeListener = enabled -> updateClickListener(); + + /** + * Set the alpha of this view. + */ + public void setAlpha(float alpha) { + mView.setAlpha(alpha); + } } |