Loading core/java/android/companion/virtual/flags.aconfig +0 −11 Original line number Diff line number Diff line Loading @@ -81,14 +81,3 @@ flag { description: "Enable virtual stylus input" bug: "304829446" } flag { name: "impulse_velocity_strategy_for_touch_navigation" is_exported: true namespace: "virtual_devices" description: "Use impulse velocity strategy during conversion of touch navigation flings into Dpad events" bug: "338426241" metadata { purpose: PURPOSE_BUGFIX } } No newline at end of file core/java/android/view/ViewRootImpl.java +1 −6 Original line number Diff line number Diff line Loading @@ -8876,11 +8876,6 @@ public final class ViewRootImpl implements ViewParent, SyntheticTouchNavigationHandler() { super(true); int gestureDetectorVelocityStrategy = android.companion.virtual.flags.Flags .impulseVelocityStrategyForTouchNavigation() ? VelocityTracker.VELOCITY_TRACKER_STRATEGY_IMPULSE : VelocityTracker.VELOCITY_TRACKER_STRATEGY_DEFAULT; mGestureDetector = new GestureDetector(mContext, new GestureDetector.OnGestureListener() { @Override Loading Loading @@ -8920,7 +8915,7 @@ public final class ViewRootImpl implements ViewParent, } }, /* handler= */ null, gestureDetectorVelocityStrategy); VelocityTracker.VELOCITY_TRACKER_STRATEGY_IMPULSE); } public void process(MotionEvent event) { Loading Loading
core/java/android/companion/virtual/flags.aconfig +0 −11 Original line number Diff line number Diff line Loading @@ -81,14 +81,3 @@ flag { description: "Enable virtual stylus input" bug: "304829446" } flag { name: "impulse_velocity_strategy_for_touch_navigation" is_exported: true namespace: "virtual_devices" description: "Use impulse velocity strategy during conversion of touch navigation flings into Dpad events" bug: "338426241" metadata { purpose: PURPOSE_BUGFIX } } No newline at end of file
core/java/android/view/ViewRootImpl.java +1 −6 Original line number Diff line number Diff line Loading @@ -8876,11 +8876,6 @@ public final class ViewRootImpl implements ViewParent, SyntheticTouchNavigationHandler() { super(true); int gestureDetectorVelocityStrategy = android.companion.virtual.flags.Flags .impulseVelocityStrategyForTouchNavigation() ? VelocityTracker.VELOCITY_TRACKER_STRATEGY_IMPULSE : VelocityTracker.VELOCITY_TRACKER_STRATEGY_DEFAULT; mGestureDetector = new GestureDetector(mContext, new GestureDetector.OnGestureListener() { @Override Loading Loading @@ -8920,7 +8915,7 @@ public final class ViewRootImpl implements ViewParent, } }, /* handler= */ null, gestureDetectorVelocityStrategy); VelocityTracker.VELOCITY_TRACKER_STRATEGY_IMPULSE); } public void process(MotionEvent event) { Loading