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. (react-native-maps#1464)
  • Loading branch information
mikelambert authored and Masu Lin committed Aug 7, 2017
1 parent afd6d31 commit 582c42e
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 582c42e

Please sign in to comment.