mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Enable logs on swipe detection in tests
- Enable BaseSwipeDetector log in tests - Add log for scroll finish and motion pause event Bug: 193440212 Test: TaplTestsQuickstep#testSwitchToOverview Change-Id: Idab566bc615050f73d898459897b66f8b95951b3
This commit is contained in:
@@ -17,6 +17,8 @@ package com.android.launcher3.touch;
|
||||
|
||||
import static android.view.MotionEvent.INVALID_POINTER_ID;
|
||||
|
||||
import static com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS;
|
||||
|
||||
import android.graphics.PointF;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
@@ -41,7 +43,8 @@ import java.util.Queue;
|
||||
*/
|
||||
public abstract class BaseSwipeDetector {
|
||||
|
||||
private static final boolean DBG = false;
|
||||
// b/193440212: Debug swipe gesture in tests.
|
||||
private static final boolean DBG = IS_RUNNING_IN_TEST_HARNESS;
|
||||
private static final String TAG = "BaseSwipeDetector";
|
||||
private static final float ANIMATION_DURATION = 1200;
|
||||
/** The minimum release velocity in pixels per millisecond that triggers fling.*/
|
||||
|
||||
Reference in New Issue
Block a user