diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java b/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java index c0691c748db507..fa2716fce93548 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java @@ -205,14 +205,14 @@ public void invoke(Object... args) { }; } - private Context getContext() { + protected Context getContext() { if (mActivity != null) { return mActivity; } return Assertions.assertNotNull(mFragmentActivity); } - private Activity getPlainActivity() { + protected Activity getPlainActivity() { return ((Activity) getContext()); } }