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

Commit c882df6a authored by Ben Murdoch's avatar Ben Murdoch
Browse files

Fix StemGestureTests.

Override config_longPressOnStemPrimaryBehavior to enable support
for stem key gestures in tests.

Fixes: 356277273
Flag: TEST_ONLY
Test: atest StemKeyGestureTests
Change-Id: I3e145c4f2421a168abd3db3f3960b7a2384eb26c
parent f1ec0448
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.os.RemoteException;
import android.provider.Settings;
import android.view.Display;

import org.junit.Before;
import org.junit.Test;

/**
@@ -48,6 +49,13 @@ public class StemKeyGestureTests extends ShortcutKeyTestBase {

    private static final String TEST_TARGET_ACTIVITY = "com.android.server.policy/.TestActivity";

    @Before
    public void setup() {
        super.setup();
        overrideResource(com.android.internal.R.integer.config_longPressOnStemPrimaryBehavior,
                LONG_PRESS_PRIMARY_LAUNCH_VOICE_ASSISTANT);
    }

    /**
     * Stem single key should not launch behavior during set up.
     */