Skip to content

Commit

Permalink
Attempt to fix crashes. A variant of react-native-maps#1403 but for a…
Browse files Browse the repository at this point in the history
…nother lifecycle method, as proposed by @Nelrohd.
  • Loading branch information
mikelambert committed Jul 6, 2017
1 parent 045ec7e commit cdf6a5d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ public void onHostResume() {
map.setMyLocationEnabled(showUserLocation);
}
synchronized (AirMapView.this) {
AirMapView.this.onResume();
if (!destroyed) {
AirMapView.this.onResume();
}
paused = false;
}
}
Expand Down

0 comments on commit cdf6a5d

Please sign in to comment.