Use WindowInfoTracker.Companion.getOrCreate instead of the short version (flutter/engine#30012)

This commit is contained in:
Emmanuel Garcia 2021-11-30 17:24:01 -08:00 committed by GitHub
parent a1f57468fc
commit f0d3d31b08

View File

@ -455,7 +455,7 @@ public class FlutterView extends FrameLayout implements MouseCursorPlugin.MouseC
try {
return new WindowInfoRepositoryCallbackAdapterWrapper(
new WindowInfoTrackerCallbackAdapter(
WindowInfoTracker.getOrCreate((Activity) getContext())));
WindowInfoTracker.Companion.getOrCreate((Activity) getContext())));
} catch (NoClassDefFoundError noClassDefFoundError) {
// Testing environment uses gn/javac, which does not work with aar files. This is why aar
// are converted to jar files, losing resources and other android-specific files.