mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Merge "Check NPE and log error condition for enableBlockingTimeout in test harness." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1eb1e03651
@@ -179,9 +179,15 @@ public class QuickstepTestInformationHandler extends TestInformationHandler {
|
||||
|
||||
private void enableBlockingTimeout(
|
||||
TouchInteractionService.TISBinder tisBinder, boolean enable) {
|
||||
// Allow null-pointer to catch illegal states.
|
||||
tisBinder.getTaskbarManager().getCurrentActivityContext().enableBlockingTimeoutDuringTests(
|
||||
enable);
|
||||
TaskbarActivityContext context = tisBinder.getTaskbarManager().getCurrentActivityContext();
|
||||
if (context == null) {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.d(NPE_TRANSIENT_TASKBAR, "enableBlockingTimeout: enable=" + enable,
|
||||
new Exception());
|
||||
}
|
||||
} else {
|
||||
context.enableBlockingTimeoutDuringTests(enable);
|
||||
}
|
||||
}
|
||||
|
||||
private void enableTransientTaskbar(
|
||||
|
||||
Reference in New Issue
Block a user