diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java index f3511bd2879039..f3a1a2f10863c3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java @@ -9,10 +9,10 @@ package com.facebook.react.uimanager; +import javax.annotation.Nullable; + +import android.app.Activity; import android.content.Context; -import android.content.Intent; -import android.content.res.Resources; -import android.os.Bundle; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContext; @@ -47,4 +47,14 @@ public void addLifecycleEventListener(LifecycleEventListener listener) { public void removeLifecycleEventListener(LifecycleEventListener listener) { mReactApplicationContext.removeLifecycleEventListener(listener); } + + @Override + public boolean hasCurrentActivity() { + return mReactApplicationContext.hasCurrentActivity(); + } + + @Override + public @Nullable Activity getCurrentActivity() { + return mReactApplicationContext.getCurrentActivity(); + } }