From f4dbb73a1e55ef613a5965ef1a33892e94585413 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 26 Sep 2023 10:58:11 -0700 Subject: [PATCH] Remove support for Android API < 23 in ReactFragment Summary: Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactFragment chnagelog: [Android][Breaking] Remove support for Android API < 23 in ReactFragment Differential Revision: D48545506 fbshipit-source-id: fcc75b55613176cc343ef9b10ec455b9444bdd54 --- .../src/main/java/com/facebook/react/ReactFragment.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java index f6c75784e85fa3..f3fbe055bf052d 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java @@ -7,10 +7,8 @@ package com.facebook.react; -import android.annotation.TargetApi; import android.app.Activity; import android.content.Intent; -import android.os.Build; import android.os.Bundle; import android.view.KeyEvent; import android.view.LayoutInflater; @@ -161,13 +159,11 @@ public int checkPermission(String permission, int pid, int uid) { return getActivity().checkPermission(permission, pid, uid); } - @TargetApi(Build.VERSION_CODES.M) @Override public int checkSelfPermission(String permission) { return getActivity().checkSelfPermission(permission); } - @TargetApi(Build.VERSION_CODES.M) @Override public void requestPermissions( String[] permissions, int requestCode, PermissionListener listener) {