mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-11 05:43:19 +08:00
Make getCurrentActivity public on ReactContext
Summary: Addresses #8661 Closes https://github.com/facebook/react-native/pull/9071 Differential Revision: D3641285 Pulled By: foghina fbshipit-source-id: dede86743efddc33b6ead053e805770fc213685c
This commit is contained in:
committed by
Mike Grabowski
parent
07a970195d
commit
f5bdd52ddc
@@ -283,7 +283,7 @@ public class ReactContext extends ContextWrapper {
|
||||
* DO NOT HOLD LONG-LIVED REFERENCES TO THE OBJECT RETURNED BY THIS METHOD, AS THIS WILL CAUSE
|
||||
* MEMORY LEAKS.
|
||||
*/
|
||||
/* package */ @Nullable Activity getCurrentActivity() {
|
||||
public @Nullable Activity getCurrentActivity() {
|
||||
if (mCurrentActivity == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user