Skip to content

Commit

Permalink
Make getCurrentActivity public on ReactContext
Browse files Browse the repository at this point in the history
Summary:
Addresses facebook#8661
Closes facebook#9071

Differential Revision: D3641285

Pulled By: foghina

fbshipit-source-id: dede86743efddc33b6ead053e805770fc213685c
  • Loading branch information
Marc Shilling authored and samerce committed Aug 23, 2016
1 parent 36edbf0 commit b81e246
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -283,7 +283,7 @@ public boolean startActivityForResult(Intent intent, int code, Bundle bundle) {
* 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;
}
Expand Down

0 comments on commit b81e246

Please sign in to comment.