Merge "Call SystemUIFactory.prepareSysUIComponentBuilder even for tests"

This commit is contained in:
TreeHugger Robot
2020-12-01 02:25:18 +00:00
committed by Android (Google) Code Review

View File

@@ -113,8 +113,10 @@ public class SystemUIFactory {
.setShellCommandHandler(mWMComponent.getShellCommandHandler())
.setAppPairs(mWMComponent.getAppPairs());
} else {
// TODO: Call on prepareSysUIComponentBuilder but not with real components.
builder = builder.setPip(Optional.ofNullable(null))
// TODO: Call on prepareSysUIComponentBuilder but not with real components. Other option
// is separating this logic into newly creating SystemUITestsFactory.
builder = prepareSysUIComponentBuilder(builder, mWMComponent)
.setPip(Optional.ofNullable(null))
.setSplitScreen(Optional.ofNullable(null))
.setOneHanded(Optional.ofNullable(null))
.setBubbles(Optional.ofNullable(null))
@@ -194,4 +196,4 @@ public class SystemUIFactory {
AssetManager am, String modelName) {
return new BackGestureTfClassifierProvider();
}
}
}