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

Commit 86b0ed5b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove usages of launched gesture detector flag" into main

parents 20b95349 c0b6f871
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
@@ -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
@@ -8920,7 +8915,7 @@ public final class ViewRootImpl implements ViewParent,
                        }
                    },
                    /* handler= */ null,
                    gestureDetectorVelocityStrategy);
                    VelocityTracker.VELOCITY_TRACKER_STRATEGY_IMPULSE);
        }
        public void process(MotionEvent event) {