Merge "Fix Panel position may not update when device screen off / on quickly." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a93b5bcb94
@@ -252,7 +252,8 @@ public abstract class PanelView extends FrameLayout {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouchEvent(MotionEvent event) {
|
public boolean onTouchEvent(MotionEvent event) {
|
||||||
if (mInstantExpanding || mTouchDisabled
|
if (mInstantExpanding
|
||||||
|
|| (mTouchDisabled && event.getActionMasked() != MotionEvent.ACTION_CANCEL)
|
||||||
|| (mMotionAborted && event.getActionMasked() != MotionEvent.ACTION_DOWN)) {
|
|| (mMotionAborted && event.getActionMasked() != MotionEvent.ACTION_DOWN)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user