Skip to content

Commit

Permalink
Remove support for Android API < 23 in ReactFragment
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 26, 2023
1 parent 3f3262e commit f4dbb73
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 f4dbb73

Please sign in to comment.