diff options
author | Lucas Dupin <dupin@google.com> | 2019-01-03 09:19:43 -0800 |
---|---|---|
committer | Lucas Dupin <dupin@google.com> | 2019-01-12 04:57:20 +0000 |
commit | 7fc9dc16c29f4848e5c1a09608b267047c35357d (patch) | |
tree | a9d48cbb38d2b4af1d146c8078dcf43e21d0aecb /packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java | |
parent | fd1e0362051ca8fd43cbd9ffa4bae3c5b427577e (diff) |
AOD notification icons placement
Whenever there's a custom clock, notification icons should be on the top
left. The default clock will just show the dark shelf.
Test: atest NotificationStackScrollLayoutTest
Test: atest CollapsedStatusBarFragmentTest
Test: visual - with and w/o clock plugin
Test: visual - with and w/o RTL layout
Bug: 122301289
Bug: 111405682
Fixes: 120563185
Change-Id: I4c513d347f656262ee6f91bd208ab9f219e4419c
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java index c6f172684686..f0cdc890306f 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java @@ -141,6 +141,13 @@ public class KeyguardStatusView extends GridLayout implements onDensityOrFontScaleChanged(); } + /** + * If we're presenting a custom clock of just the default one. + */ + public boolean hasCustomClock() { + return mClockView.hasCustomClock(); + } + private void setEnableMarquee(boolean enabled) { if (DEBUG) Log.v(TAG, "Schedule setEnableMarquee: " + (enabled ? "Enable" : "Disable")); if (enabled) { |