OSDN Git Service

fix overlay on status bar because of two clock
authorfelkachang <felkachang@google.com>
Fri, 29 Jun 2018 07:34:28 +0000 (15:34 +0800)
committerFelka Chang <felkachang@google.com>
Thu, 12 Jul 2018 06:21:49 +0000 (06:21 +0000)
commitca4eee83d9d7e920cc01e5762f6d9056bbe3f546
tree0a7073e0c62c4670bdfb2aeefbb36cfdac3f3fe5
parent529bfe6f0a4c5a8683b4dc6a6256b30f7e08bc16
fix overlay on status bar because of two clock

Although the status bar block user's tap, the user still could
drag the status bar to expland the notification panel.

The root cause is that neither the clock nor the notification icon
inner area doesn't hide when the user drag down the status bar in
landscape condition but portrait does.

The solution is to trigger mStatusBar.recomputeDisableFlags when
the heads up is showing in landscape mode and the expand status is
different. CollapsedStatusBarFragment.adjustDisableFlags should
disable clock showing when the heads up showing.

Change-Id: If7411f5d8eef9cf234b83a463006325ba0156311
Fix: 110808257
Test: atest SystemUITests
packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java