Skip to content

Commit

Permalink
Attempt to fix crashes. A variant of react-native-maps/react-native-m…
Browse files Browse the repository at this point in the history
…aps#1403 but for another lifecycle method, as proposed by @Nelrohd. (#1464)
  • Loading branch information
DavidLee0501 committed Jul 27, 2017
1 parent 38aa49d commit 3c8822a
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 3c8822a

Please sign in to comment.