Merge changes from topic "running-in-test-camel" into tm-qpr-dev

* changes:
  Expose IS_RUNNING_IN_TEST_HARNESS as static method.
  Make isTooltipEnabled a getter due to its mutable dependencies.
This commit is contained in:
Brian Isganitis
2023-03-03 23:15:38 +00:00
committed by Android (Google) Code Review
23 changed files with 41 additions and 39 deletions

View File

@@ -460,7 +460,7 @@ import java.util.StringJoiner;
updateIconAlphaForHome(taskbarWillBeVisible ? 1 : 0);
// Sync the first frame where we swap taskbar and hotseat.
if (firstFrameVisChanged && mCanSyncViews && !Utilities.IS_RUNNING_IN_TEST_HARNESS) {
if (firstFrameVisChanged && mCanSyncViews && !Utilities.isRunningInTestHarness()) {
ViewRootSync.synchronizeNextDraw(mLauncher.getHotseat(),
mControllers.taskbarActivityContext.getDragLayer(),
() -> {});