Merge "Fix QS Open on single finger scroll" into nyc-dev
am: 11c4fd411a
* commit '11c4fd411a20100b57a678bf3abcde2f2e2eb199':
Fix QS Open on single finger scroll
This commit is contained in:
@@ -63,6 +63,14 @@ public class QSContainer extends FrameLayout {
|
|||||||
mHeader = (BaseStatusBarHeader) findViewById(R.id.header);
|
mHeader = (BaseStatusBarHeader) findViewById(R.id.header);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||||
|
// Since we control our own bottom, be whatever size we want.
|
||||||
|
// Otherwise the QSPanel ends up with 0 height when the window is only the
|
||||||
|
// size of the status bar.
|
||||||
|
super.onMeasure(widthMeasureSpec, MeasureSpec.UNSPECIFIED);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
||||||
super.onLayout(changed, left, top, right, bottom);
|
super.onLayout(changed, left, top, right, bottom);
|
||||||
|
|||||||
Reference in New Issue
Block a user