Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -564,6 +564,7 @@ public class NotificationPanelView extends PanelView implements ? View.INVISIBLE ? View.INVISIBLE : View.VISIBLE); : View.VISIBLE); mScrollView.setTouchEnabled(mQsExpanded); mScrollView.setTouchEnabled(mQsExpanded); mNotificationStackScroller.setTouchEnabled(!mQsExpanded); } } private void setQsExpansion(float height) { private void setQsExpansion(float height) { Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +13 −1 Original line number Original line Diff line number Diff line Loading @@ -162,7 +162,7 @@ public class NotificationStackScrollLayout extends ViewGroup * animating. * animating. */ */ private boolean mOnlyScrollingInThisMotion; private boolean mOnlyScrollingInThisMotion; private boolean mTouchEnabled = true; private ViewTreeObserver.OnPreDrawListener mChildrenUpdater private ViewTreeObserver.OnPreDrawListener mChildrenUpdater = new ViewTreeObserver.OnPreDrawListener() { = new ViewTreeObserver.OnPreDrawListener() { @Override @Override Loading Loading @@ -1811,6 +1811,18 @@ public class NotificationStackScrollLayout extends ViewGroup return mTopPadding + getTranslationY(); return mTopPadding + getTranslationY(); } } public void setTouchEnabled(boolean touchEnabled) { mTouchEnabled = touchEnabled; } @Override public boolean dispatchTouchEvent(MotionEvent ev) { if (!mTouchEnabled) { return false; } return super.dispatchTouchEvent(ev); } /** /** * A listener that is notified when some child locations might have changed. * A listener that is notified when some child locations might have changed. */ */ Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -564,6 +564,7 @@ public class NotificationPanelView extends PanelView implements ? View.INVISIBLE ? View.INVISIBLE : View.VISIBLE); : View.VISIBLE); mScrollView.setTouchEnabled(mQsExpanded); mScrollView.setTouchEnabled(mQsExpanded); mNotificationStackScroller.setTouchEnabled(!mQsExpanded); } } private void setQsExpansion(float height) { private void setQsExpansion(float height) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +13 −1 Original line number Original line Diff line number Diff line Loading @@ -162,7 +162,7 @@ public class NotificationStackScrollLayout extends ViewGroup * animating. * animating. */ */ private boolean mOnlyScrollingInThisMotion; private boolean mOnlyScrollingInThisMotion; private boolean mTouchEnabled = true; private ViewTreeObserver.OnPreDrawListener mChildrenUpdater private ViewTreeObserver.OnPreDrawListener mChildrenUpdater = new ViewTreeObserver.OnPreDrawListener() { = new ViewTreeObserver.OnPreDrawListener() { @Override @Override Loading Loading @@ -1811,6 +1811,18 @@ public class NotificationStackScrollLayout extends ViewGroup return mTopPadding + getTranslationY(); return mTopPadding + getTranslationY(); } } public void setTouchEnabled(boolean touchEnabled) { mTouchEnabled = touchEnabled; } @Override public boolean dispatchTouchEvent(MotionEvent ev) { if (!mTouchEnabled) { return false; } return super.dispatchTouchEvent(ev); } /** /** * A listener that is notified when some child locations might have changed. * A listener that is notified when some child locations might have changed. */ */ Loading