Skip to content

Commit 4ce64fb

Browse files
committed
Move bar panels above the system bar window layer.
We use the new TYPE_NAVIGATION_BAR_PANEL for this instead of TYPE_STATUS_BAR_PANEL (which is indeed above the status bar, but far below the navigation bar, which is the window type used for the system bar now.) Bug: 6319161 (ticker underneath system bar) Bug: 6437342 (missing clear all button on system bar) Change-Id: Ib58c0003c4c81db64edca2c1bbc2d764c3237ed0
1 parent 6f28f9e commit 4ce64fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ protected void addPanelWindows() {
268268
WindowManager.LayoutParams lp = mNotificationPanelParams = new WindowManager.LayoutParams(
269269
res.getDimensionPixelSize(R.dimen.notification_panel_width),
270270
getNotificationPanelHeight(),
271-
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
271+
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
272272
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
273273
| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
274274
| WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
@@ -636,7 +636,7 @@ protected WindowManager.LayoutParams getRecentsLayoutParams(LayoutParams layoutP
636636
WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
637637
(int) mContext.getResources().getDimension(R.dimen.status_bar_recents_width),
638638
ViewGroup.LayoutParams.MATCH_PARENT,
639-
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
639+
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
640640
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
641641
| WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
642642
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private ViewGroup makeWindow() {
223223
windowFlags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
224224
}
225225
WindowManager.LayoutParams lp = new WindowManager.LayoutParams(width, mLargeIconHeight,
226-
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL, windowFlags,
226+
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL, windowFlags,
227227
PixelFormat.TRANSLUCENT);
228228
lp.gravity = Gravity.BOTTOM | Gravity.RIGHT;
229229
// lp.windowAnimations = com.android.internal.R.style.Animation_Toast;

0 commit comments

Comments
 (0)