Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +6 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import android.view.VelocityTracker; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.view.ViewParent; import android.widget.OverScroller; import com.android.systemui.ExpandHelper; Loading Loading @@ -710,6 +709,12 @@ public class NotificationStackScrollLayout extends ViewGroup super.onInterceptTouchEvent(ev); } @Override protected void onViewRemoved(View child) { super.onViewRemoved(child); mCurrentStackScrollState.removeViewStateForView(child); } private boolean onInterceptTouchEventScroll(MotionEvent ev) { /* * This method JUST determines whether we want to intercept the motion. Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java +4 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,10 @@ public class StackScrollState { return mStateMap.get(requestedView); } public void removeViewStateForView(View child) { mStateMap.remove(child); } /** * Apply the properties saved in {@link #mStateMap} to the children of the {@link #mHostView}. * The properties are only applied if they effectively changed. Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +6 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import android.view.VelocityTracker; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.view.ViewParent; import android.widget.OverScroller; import com.android.systemui.ExpandHelper; Loading Loading @@ -710,6 +709,12 @@ public class NotificationStackScrollLayout extends ViewGroup super.onInterceptTouchEvent(ev); } @Override protected void onViewRemoved(View child) { super.onViewRemoved(child); mCurrentStackScrollState.removeViewStateForView(child); } private boolean onInterceptTouchEventScroll(MotionEvent ev) { /* * This method JUST determines whether we want to intercept the motion. Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java +4 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,10 @@ public class StackScrollState { return mStateMap.get(requestedView); } public void removeViewStateForView(View child) { mStateMap.remove(child); } /** * Apply the properties saved in {@link #mStateMap} to the children of the {@link #mHostView}. * The properties are only applied if they effectively changed. Loading