Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0b6f871 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Remove usages of launched gesture detector flag

The VDM flag impulseVelocityStrategyForTouchNavigation has been
in Nextfood since May 2024

Bug: 338426241
Change-Id: I7ab6e6007b03e3d647c80ba10e7bf7cce26e53ea
Test: presubmit
Flag: EXEMPT cleanup
parent 6c99a727
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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
+1 −6
Original line number Diff line number Diff line
@@ -8873,11 +8873,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
@@ -8917,7 +8912,7 @@ public final class ViewRootImpl implements ViewParent,
                        }
                    },
                    /* handler= */ null,
                    gestureDetectorVelocityStrategy);
                    VelocityTracker.VELOCITY_TRACKER_STRATEGY_IMPULSE);
        }
        public void process(MotionEvent event) {