From 6c5211a078f0574c7c73c550b2c9c26ca203110e Mon Sep 17 00:00:00 2001 From: Emmanuel Garcia Date: Thu, 2 Dec 2021 23:49:31 -0800 Subject: [PATCH] Fix cast in FlutterView --- .../android/io/flutter/embedding/android/FlutterView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/android/io/flutter/embedding/android/FlutterView.java b/shell/platform/android/io/flutter/embedding/android/FlutterView.java index d3f2486668a46..7787bd64e3e6b 100644 --- a/shell/platform/android/io/flutter/embedding/android/FlutterView.java +++ b/shell/platform/android/io/flutter/embedding/android/FlutterView.java @@ -455,7 +455,7 @@ protected WindowInfoRepositoryCallbackAdapterWrapper createWindowInfoRepo() { try { return new WindowInfoRepositoryCallbackAdapterWrapper( new WindowInfoTrackerCallbackAdapter( - WindowInfoTracker.Companion.getOrCreate((Activity) getContext()))); + WindowInfoTracker.Companion.getOrCreate(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.