Fixing Robolectic model tests

Some tests were broken because of refactoring in LauncherModel.

Change-Id: I55aa32d75a4d16338796a1b1765717fd72ba4b33
This commit is contained in:
Sunny Goyal
2020-11-05 17:07:35 -08:00
parent c32e39f1db
commit 986ea0da60
8 changed files with 38 additions and 27 deletions

View File

@@ -326,6 +326,8 @@ public abstract class BaseQuickstepLauncher extends Launcher
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
InteractionJankMonitorWrapper.init(getWindow().getDecorView());
if (Utilities.ATLEAST_R) {
InteractionJankMonitorWrapper.init(getWindow().getDecorView());
}
}
}