From d4bc5b68190de07608ff25cf8ae65e6c2adba544 Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Tue, 5 Jan 2016 19:04:48 -0800 Subject: SystemUI: fix navbar drawing issues in landscape Originally StatusBarWindowView was responsible for laying out the scrims and making sure they are full screen (behind navbar), while the other views were respecting the navbar insets. This was broken for two reasons for us: 1) our scrims are more complex and aren't always direct subchildren of the StatusBarWindowView (mainly to display the visualizer correctly) 2) we declared fitSystemWindows=false, so the logic to add insets was never actually executing. We now split out the logic for insets into its own class and apply it to the scrims properly. Ref: CYNGNOS-1502 Change-Id: I5b8295d7a64b72dc911fce6d529936592f24e98b Signed-off-by: Roman Birg --- packages/SystemUI/res/layout/super_status_bar.xml | 27 ++++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'packages/SystemUI/res') diff --git a/packages/SystemUI/res/layout/super_status_bar.xml b/packages/SystemUI/res/layout/super_status_bar.xml index 896efde..c6178a0 100644 --- a/packages/SystemUI/res/layout/super_status_bar.xml +++ b/packages/SystemUI/res/layout/super_status_bar.xml @@ -18,13 +18,13 @@ --> - - + android:visibility="visible" + sysui:ignoreRightInset="true" + android:fitsSystemWindows="true"> + android:id="@+id/heads_up_scrim" + android:layout_width="match_parent" + android:layout_height="@dimen/heads_up_scrim_height" + android:background="@drawable/heads_up_scrim" + android:importantForAccessibility="no"/> - + - + -- cgit v1.1