[android] #3944 - Using ApplicationContext instead of Activity context for MapboxEventManager

This commit is contained in:
Brad Leege
2016-02-15 09:29:34 -06:00
parent d06a7c4b86
commit ef865f04f6

View File

@@ -158,7 +158,7 @@ public class MapboxEventManager {
*/
public static MapboxEventManager getMapboxEventManager(@NonNull Context context) {
if (mapboxEventManager == null) {
mapboxEventManager = new MapboxEventManager(context);
mapboxEventManager = new MapboxEventManager(context.getApplicationContext());
}
return mapboxEventManager;
}