mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Revert "Prevent CtS invocation in fake landscape mode"
This reverts commit 299576a777.
Reason for revert: b/402037577
Change-Id: I240ffd68ccf3536d80eda1c63395c64c8e48de22
This commit is contained in:
committed by
Android (Google) Code Review
parent
299576a777
commit
e48deacbd4
@@ -52,7 +52,6 @@ import com.android.quickstep.BaseContainerInterface;
|
||||
import com.android.quickstep.DeviceConfigWrapper;
|
||||
import com.android.quickstep.SystemUiProxy;
|
||||
import com.android.quickstep.TopTaskTracker;
|
||||
import com.android.quickstep.orientation.RecentsPagedOrientationHandler;
|
||||
import com.android.quickstep.views.RecentsView;
|
||||
import com.android.quickstep.views.RecentsViewContainer;
|
||||
|
||||
@@ -83,7 +82,6 @@ public class ContextualSearchInvokerTest {
|
||||
private @Mock BaseContainerInterface mMockContainerInterface;
|
||||
private @Mock RecentsViewContainer mMockRecentsViewContainer;
|
||||
private @Mock RecentsView mMockRecentsView;
|
||||
private @Mock RecentsPagedOrientationHandler mMockOrientationHandler;
|
||||
private ContextualSearchInvoker mContextualSearchInvoker;
|
||||
|
||||
@Before
|
||||
@@ -191,15 +189,6 @@ public class ContextualSearchInvokerTest {
|
||||
verify(mMockStatsLogger).log(LAUNCHER_LAUNCH_OMNI_ATTEMPTED_SPLITSCREEN);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void runContextualSearchInvocationChecksAndLogFailures_isFakeLandscape() {
|
||||
when(mMockRecentsView.getPagedOrientationHandler()).thenReturn(mMockOrientationHandler);
|
||||
when(mMockOrientationHandler.isLayoutNaturalToLauncher()).thenReturn(false);
|
||||
assertFalse("Expect invocation checks to fail in fake landscape.",
|
||||
mContextualSearchInvoker.runContextualSearchInvocationChecksAndLogFailures());
|
||||
verifyNoMoreInteractions(mMockStatsLogManager);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invokeContextualSearchUncheckedWithHaptic_cssIsAvailable_commitHapticEnabled() {
|
||||
try (AutoCloseable flag = overrideSearchHapticCommitFlag(true)) {
|
||||
|
||||
Reference in New Issue
Block a user