diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java index fc7c2c17549..e7d982d4a81 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java @@ -629,7 +629,6 @@ public class FlutterActivity extends Activity } @Override - @RequiresApi(API_LEVELS.API_24) protected void onCreate(@Nullable Bundle savedInstanceState) { switchLaunchThemeForNormalTheme(); @@ -799,7 +798,6 @@ public class FlutterActivity extends Activity } @NonNull - @RequiresApi(API_LEVELS.API_24) private View createFlutterView() { return delegate.onCreateView( /* inflater=*/ null, @@ -897,7 +895,6 @@ public class FlutterActivity extends Activity } @Override - @RequiresApi(API_LEVELS.API_24) public void detachFromFlutterEngine() { Log.w( TAG, @@ -913,7 +910,6 @@ public class FlutterActivity extends Activity } @Override - @RequiresApi(API_LEVELS.API_24) protected void onDestroy() { super.onDestroy(); if (stillAttachedForEvent("onDestroy")) { diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivityAndFragmentDelegate.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivityAndFragmentDelegate.java index b8c07e2b13d..7eadd5c9065 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivityAndFragmentDelegate.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/android/FlutterActivityAndFragmentDelegate.java @@ -369,7 +369,6 @@ import java.util.List; * */ @NonNull - @RequiresApi(API_LEVELS.API_24) View onCreateView( LayoutInflater inflater, @Nullable ViewGroup container, @@ -668,7 +667,6 @@ import java.util.List; * *
This method removes this delegate's {@link FlutterView}'s {@link FlutterUiDisplayListener}. */ - @RequiresApi(API_LEVELS.API_24) void onDestroyView() { Log.v(TAG, "onDestroyView()"); ensureAlive(); diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/mouse/MouseCursorPlugin.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/mouse/MouseCursorPlugin.java index 53b86f487cc..508d9dad90b 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/mouse/MouseCursorPlugin.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/mouse/MouseCursorPlugin.java @@ -4,16 +4,12 @@ package io.flutter.plugin.mouse; -import static io.flutter.Build.API_LEVELS; - import android.view.PointerIcon; import androidx.annotation.NonNull; -import androidx.annotation.RequiresApi; import io.flutter.embedding.engine.systemchannels.MouseCursorChannel; import java.util.HashMap; /** A mandatory plugin that handles mouse cursor requests. */ -@RequiresApi(API_LEVELS.API_24) public class MouseCursorPlugin { @NonNull private final MouseCursorViewDelegate mView; @NonNull private final MouseCursorChannel mouseCursorChannel; @@ -115,7 +111,7 @@ public class MouseCursorPlugin { /** * Gets a system pointer icon object for the given {@code type}. * - *
If typeis not recognized, returns the default pointer icon. + *
If type is not recognized, returns the default pointer icon. * *
This is typically implemented by calling {@link android.view.PointerIcon#getSystemIcon} * with the context associated with this view.