summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2020-11-20 10:38:37 -0500
committerBeverly <beverlyt@google.com>2020-11-20 10:38:37 -0500
commit9f515695aeb4c12a543c7bcc1555f66a1b6ba859 (patch)
treea813be9741bcf1c45ca0d05c84eaad84384a537c /packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
parent8b0cc5a24ccce499ae752bcad79554f0ea25134b (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.java7
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) {