Add CUSTOM_LPNH_THRESHOLDS feature flag to customize LPNH
When this flag is enabled, new Developer Options appear which allow you to customize the slop and timeout to invoke LPNH. The slop is defined as a multiplier to the default edge slop (which I discovered while looking into this - it appears to be intended for touches along the device edge and is 50% larger than the default touch slop; currently used by Back). Timeout is defined in milliseconds, defaulting to 400, at least on my device. Bug: 301680992 Bug: 300955321 Flag: CUSTOM_LPNH_THRESHOLDS - should be no-op with default off Test: Manual with flag on and adjusting sliders, and flag off Change-Id: Iabc7b3706f4fdd6f0392c858b81a856e375ffd51
Loading
Please register or sign in to comment