Skip to content

Commit bee465f

Browse files
Selim CinekAndroid (Google) Code Review
authored andcommitted
Merge "Fixed a ordering bug with the notification shade" into lmp-dev
2 parents 4581cf8 + becf5e3 commit bee465f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,8 +1431,8 @@ protected void updateRowStates() {
14311431

14321432
mStackScroller.changeViewPosition(mKeyguardIconOverflowContainer,
14331433
mStackScroller.getChildCount() - 3);
1434-
mStackScroller.changeViewPosition(mDismissView, mStackScroller.getChildCount() - 2);
1435-
mStackScroller.changeViewPosition(mEmptyShadeView, mStackScroller.getChildCount() - 1);
1434+
mStackScroller.changeViewPosition(mEmptyShadeView, mStackScroller.getChildCount() - 2);
1435+
mStackScroller.changeViewPosition(mDismissView, mStackScroller.getChildCount() - 1);
14361436
}
14371437

14381438
private boolean shouldShowOnKeyguard(StatusBarNotification sbn) {

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ public boolean onTouch(View v, MotionEvent event) {
690690
SpeedBumpView speedBump = (SpeedBumpView) LayoutInflater.from(mContext).inflate(
691691
R.layout.status_bar_notification_speed_bump, mStackScroller, false);
692692
mStackScroller.setSpeedBumpView(speedBump);
693+
mEmptyShadeView = (EmptyShadeView) LayoutInflater.from(mContext).inflate(
694+
R.layout.status_bar_no_notifications, mStackScroller, false);
695+
mStackScroller.setEmptyShadeView(mEmptyShadeView);
693696
mDismissView = (DismissView) LayoutInflater.from(mContext).inflate(
694697
R.layout.status_bar_notification_dismiss_all, mStackScroller, false);
695698
mDismissView.setOnButtonClickListener(new View.OnClickListener() {
@@ -699,9 +702,6 @@ public void onClick(View v) {
699702
}
700703
});
701704
mStackScroller.setDismissView(mDismissView);
702-
mEmptyShadeView = (EmptyShadeView) LayoutInflater.from(mContext).inflate(
703-
R.layout.status_bar_no_notifications, mStackScroller, false);
704-
mStackScroller.setEmptyShadeView(mEmptyShadeView);
705705
mExpandedContents = mStackScroller;
706706

707707
mScrimController = new ScrimController(mStatusBarWindow.findViewById(R.id.scrim_behind),

0 commit comments

Comments
 (0)