Skip to content

Commit

Permalink
Remove support for Android API < 23 in ReactFragment (#39668)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39668

Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactFragment

changelog: [Android][Breaking] Remove support for Android API < 23 in ReactFragment

Reviewed By: NickGerleman

Differential Revision: D48545506

fbshipit-source-id: 9b5e335eae8ca11aac580c14c31431ca87eb11a2
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 27, 2023
1 parent 3664b8a commit 414b25b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 414b25b

Please sign in to comment.