From c359a44676db917d7fe62b8205ee76653fe529b0 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 27 Sep 2023 13:10:31 -0700 Subject: [PATCH] Remove support for Android API < 23 in WindowOverlayCompat (#39673) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39673 Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class WindowOverlayCompat changelog: [Android][Breaking] Remove support for Android API < 23 in WindowOverlayCompat Reviewed By: NickGerleman Differential Revision: D48545505 fbshipit-source-id: 51246bbe5c78efc3cf7d3f1cf0a4ab31cb9c0b5c --- .../com/facebook/react/devsupport/WindowOverlayCompat.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java index cda48b06c25f22..1223f7ffb9e69f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java @@ -16,15 +16,10 @@ */ /* package */ class WindowOverlayCompat { - private static final int ANDROID_OREO = 26; private static final int TYPE_APPLICATION_OVERLAY = 2038; - static final int TYPE_SYSTEM_ALERT = - Build.VERSION.SDK_INT < ANDROID_OREO - ? WindowManager.LayoutParams.TYPE_SYSTEM_ALERT - : TYPE_APPLICATION_OVERLAY; static final int TYPE_SYSTEM_OVERLAY = - Build.VERSION.SDK_INT < ANDROID_OREO + Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY : TYPE_APPLICATION_OVERLAY; }