Skip to content

Commit

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

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

Reviewed By: NickGerleman

Differential Revision: D48545506

fbshipit-source-id: f12cb1f7ad9b398564990f38b910b262c82ab466
  • Loading branch information
mdvacca committed Sep 26, 2023
1 parent 742b877 commit 9ef5ec4
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 9ef5ec4

Please sign in to comment.