Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 564fe1ba authored by Joe Onorato's avatar Joe Onorato Committed by Android Git Automerger
Browse files

am 6a7899a8: fix 2233092 - Notification shade gets stuck half-open

Merge commit '6a7899a8' into eclair-mr2

* commit '6a7899a8':
  fix 2233092 - Notification shade gets stuck half-open
parents 07d38c66 6a7899a8
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
@@ -692,6 +692,7 @@ public class StatusBarService extends IStatusBar.Stub
                    mTicker.addEntry(n, StatusBarIcon.getIcon(mContext, data), n.tickerText);
                }
            }
            updateExpandedViewPos(EXPANDED_LEAVE_ALONE);
        }

        // icon
@@ -1562,15 +1563,24 @@ public class StatusBarService extends IStatusBar.Stub
                    + " mTrackingPosition=" + mTrackingPosition);
        }

        // If the expanded view is not visible, there is no reason to do
        // any work.
        int h = mStatusBarView.getHeight();
        int disph = mDisplay.getHeight();

        // If the expanded view is not visible, make sure they're still off screen.
        // Maybe the view was resized.
        if (!mExpandedVisible) {
            if (mTrackingView != null) {
                mTrackingPosition = mTrackingParams.y = -disph;
                WindowManagerImpl.getDefault().updateViewLayout(mTrackingView, mTrackingParams);
            }
            if (mExpandedParams != null) {
                mExpandedParams.y = -disph;
                mExpandedDialog.getWindow().setAttributes(mExpandedParams);
            }
            return;
        }

        // tracking view...
        int h = mStatusBarView.getHeight();
        int disph = mDisplay.getHeight();
        int pos;
        if (expandedPosition == EXPANDED_FULL_OPEN) {
            pos = h;
@@ -1681,7 +1691,7 @@ public class StatusBarService extends IStatusBar.Stub
    private View.OnClickListener mClearButtonListener = new View.OnClickListener() {
        public void onClick(View v) {
            mNotificationCallbacks.onClearAll();
            performCollapse();
            addPendingOp(OP_EXPAND, null, false);
        }
    };