mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 10:26:52 +00:00
Use new AssistUtils(Base) to override SysUI Assist invocations.
AssistUtils#getSysUiAssistOverrideInvocationTypes(): Sent over SysUiProxy to request overriding these invocation types. AssistUtils#tryStartAssistOverride(): Called by OverviewProxy (TouchInteractionService) for previously requested overrides. Also used within Launcher for Taskbar and QSB to override other invocation logic. May return false to indicate that the override was not handled, so a fallback may be desired. Bug: 295874732 Test: Manual Change-Id: I488f3b7da1feb2663feab5d04dfa8d605c070efb
This commit is contained in:
@@ -26,6 +26,7 @@ import static org.mockito.Mockito.when;
|
||||
import android.os.Handler;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
@@ -70,6 +71,9 @@ public class TaskbarNavButtonControllerTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
when(mockService.getDisplayId()).thenReturn(DISPLAY_ID);
|
||||
when(mockService.getOverviewCommandHelper()).thenReturn(mockCommandHelper);
|
||||
when(mockService.getApplicationContext())
|
||||
.thenReturn(InstrumentationRegistry.getInstrumentation().getTargetContext()
|
||||
.getApplicationContext());
|
||||
when(mockStatsLogManager.logger()).thenReturn(mockStatsLogger);
|
||||
when(mockTaskbarControllers.getTaskbarActivityContext())
|
||||
.thenReturn(mockTaskbarActivityContext);
|
||||
|
||||
Reference in New Issue
Block a user