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:
1 parent
299576a777
commit
e48deacbd4
2 files changed
+1
-23
No files matched your search
@@ -161,11 +161,7 @@ internal constructor(
|
||||
statsLogManager.logger().log(LAUNCHER_LAUNCH_OMNI_FAILED_NOT_AVAILABLE)
|
||||
return false
|
||||
}
|
||||
if (isFakeLandscape()) {
|
||||
// TODO (b/383421642): Fake landscape is to be removed in 25Q3 and this entire block
|
||||
// can be removed when that happens.
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -201,13 +197,6 @@ internal constructor(
|
||||
return true
|
||||
}
|
||||
|
||||
private fun isFakeLandscape(): Boolean =
|
||||
getRecentsContainerInterface()
|
||||
?.getCreatedContainer()
|
||||
?.getOverviewPanel<RecentsView<*, *>>()
|
||||
?.getPagedOrientationHandler()
|
||||
?.isLayoutNaturalToLauncher == false
|
||||
|
||||
private fun isInSplitscreen(): Boolean {
|
||||
return topTaskTracker.getRunningSplitTaskIds().isNotEmpty()
|
||||
}
|
||||
|
||||
-11
@@ -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