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

Commit 951ecb77 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fix not being able to pull down status bar."

parents 45bbc06c 9dbbca87
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ public class NotificationPanelView extends PanelView implements
    private boolean mQsExpansionEnabled = true;
    private ValueAnimator mQsExpansionAnimator;
    private FlingAnimationUtils mFlingAnimationUtils;
    private int mStatusBarMinHeight;

    public NotificationPanelView(Context context, AttributeSet attrs) {
        super(context, attrs);
@@ -116,6 +117,8 @@ public class NotificationPanelView extends PanelView implements
                R.dimen.notifications_top_padding);
        mMinStackHeight = getResources().getDimensionPixelSize(R.dimen.collapsed_stack_height);
        mFlingAnimationUtils = new FlingAnimationUtils(getContext());
        mStatusBarMinHeight = getResources().getDimensionPixelSize(
                com.android.internal.R.dimen.status_bar_height);
    }

    @Override
@@ -520,7 +523,9 @@ public class NotificationPanelView extends PanelView implements
            int notificationMarginBottom = mStackScrollerContainer.getPaddingBottom();
            int emptyBottomMargin = notificationMarginBottom
                    + mNotificationStackScroller.getEmptyBottomMargin();
            return maxPanelHeight - emptyBottomMargin;
            int maxHeight = maxPanelHeight - emptyBottomMargin;
            maxHeight = Math.max(maxHeight, mStatusBarMinHeight);
            return maxHeight;
        }
        return super.getMaxPanelHeight();
    }
+0 −1
Original line number Diff line number Diff line
@@ -224,6 +224,5 @@ public class PanelBar extends FrameLayout {

    public void onTrackingStopped(PanelView panel) {
        mTracking = false;
        panelExpansionChanged(panel, panel.getExpandedFraction());
    }
}
+0 −6
Original line number Diff line number Diff line
@@ -77,12 +77,6 @@ public class PanelHolder extends FrameLayout {
                        event.getActionMasked(), (int) event.getX(), (int) event.getY());
            }
        }
        switch (event.getAction()) {
            case MotionEvent.ACTION_DOWN:
                PanelBar.LOG("PanelHolder got touch in open air, closing panels");
                mBar.collapseAllPanels(true);
                break;
        }
        return false;
    }