Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89308d8

Browse files
author
Fidan Hakaj
committedSep 21, 2016
fix #453
1 parent 3509026 commit 89308d8

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed
 

‎android/src/main/java/com/airbnb/android/react/maps/AirMapManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ protected AirMapView createViewInstance(ThemedReactContext context) {
6262
reactContext = context;
6363

6464
try {
65-
MapsInitializer.initialize(new AirMapModule(this.appContext).getActivity());
65+
MapsInitializer.initialize(this.appContext);
6666
} catch (RuntimeException e) {
6767
e.printStackTrace();
6868
emitMapError("Map initialize error", "map_init_error");
6969
}
7070

71-
return new AirMapView(context, this.appContext, this, this.googleMapOptions);
71+
return new AirMapView(context, this.appContext.getCurrentActivity(), this, this.googleMapOptions);
7272
}
7373

7474
@Override

‎android/src/main/java/com/airbnb/android/react/maps/AirMapModule.java

-22
This file was deleted.

0 commit comments

Comments
 (0)