File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/android/app/src/main/java/com/reactnativenavigation/react Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
import android .content .IntentFilter ;
8
8
import android .view .KeyEvent ;
9
9
import android .widget .EditText ;
10
+ import android .os .Build ;
10
11
11
12
import com .facebook .react .devsupport .interfaces .DevSupportManager ;
12
13
import com .reactnativenavigation .utils .UiUtils ;
@@ -49,7 +50,11 @@ public void removeReloadListener(ReloadListener listener) {
49
50
}
50
51
51
52
public void onActivityResumed (Activity activity ) {
52
- activity .registerReceiver (reloadReceiver , new IntentFilter (RELOAD_BROADCAST ));
53
+ if (Build .VERSION .SDK_INT >= 34 && activity .getApplicationInfo ().targetSdkVersion >= 34 ) {
54
+ activity .registerReceiver (reloadReceiver , new IntentFilter (RELOAD_BROADCAST ), Context .RECEIVER_EXPORTED );
55
+ } else {
56
+ activity .registerReceiver (reloadReceiver , new IntentFilter (RELOAD_BROADCAST ));
57
+ }
53
58
}
54
59
55
60
public void onActivityPaused (Activity activity ) {
You can’t perform that action at this time.
0 commit comments