diff options
author | Beverly <beverlyt@google.com> | 2020-11-20 10:38:37 -0500 |
---|---|---|
committer | Beverly <beverlyt@google.com> | 2020-11-20 10:38:37 -0500 |
commit | 9f515695aeb4c12a543c7bcc1555f66a1b6ba859 (patch) | |
tree | a813be9741bcf1c45ca0d05c84eaad84384a537c /packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java | |
parent | 8b0cc5a24ccce499ae752bcad79554f0ea25134b (diff) |
Use logout button + owner for max # notifs calc
In the calculation for the max # notifications to show on the lock
screen, take into consideration the height of the logout button and
owner information.
Test: atest SystemUITests, manual
Bug: 170228350
Change-Id: Ia12c85df27b16d432608fef8a52eb0d4c9ff79ff
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java index dcb306e6110a..c0e06e87b753 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java @@ -130,6 +130,13 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV } /** + * Get the height of the logout button. + */ + public int getOwnerInfoHeight() { + return mView.getOwnerInfoHeight(); + } + + /** * Set keyguard status view alpha. */ public void setAlpha(float alpha) { |