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
This commit is contained in:
@@ -268,7 +268,7 @@ public class TabletStatusBar extends BaseStatusBar implements
|
||||
WindowManager.LayoutParams lp = mNotificationPanelParams = new WindowManager.LayoutParams(
|
||||
res.getDimensionPixelSize(R.dimen.notification_panel_width),
|
||||
getNotificationPanelHeight(),
|
||||
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
|
||||
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||
| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
|
||||
| WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
|
||||
@@ -636,7 +636,7 @@ public class TabletStatusBar extends BaseStatusBar implements
|
||||
WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
|
||||
(int) mContext.getResources().getDimension(R.dimen.status_bar_recents_width),
|
||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
|
||||
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||
| WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
|
||||
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH
|
||||
|
||||
@@ -223,7 +223,7 @@ public class TabletTicker
|
||||
windowFlags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
|
||||
}
|
||||
WindowManager.LayoutParams lp = new WindowManager.LayoutParams(width, mLargeIconHeight,
|
||||
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL, windowFlags,
|
||||
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL, windowFlags,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
lp.gravity = Gravity.BOTTOM | Gravity.RIGHT;
|
||||
// lp.windowAnimations = com.android.internal.R.style.Animation_Toast;
|
||||
|
||||
Reference in New Issue
Block a user