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:
Marc Shilling 2016-07-29 04:26:38 -07:00 committed by Facebook Github Bot 9
parent a06e4b75e4
commit 7606564611
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}