summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Akap Oben <aoben@gatech.edu>2017-11-19 18:15:18 -0600
committerGitHub <noreply@github.com>2017-11-19 18:15:18 -0600
commit5efece18d9cf654b2be17f15831ca4883b2ae60e (patch)
tree7818a0b65b0c25926c513b5e1e01cbde53030151
parent131167e1d336bcffe3a8ac90e271fa6801fb314f (diff)
downloadqtlocation-mapboxgl-upstream/aoben10-patch-1.tar.gz
Update comment from onDestroy to onDestroyViewupstream/aoben10-patch-1
Updated comment to reflect that MapView's lifecycle callback in a fragment should be called from onDestroyView rather than on onDestroy. This is consistent with that MapFragment is doing.
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
index c025a119b7..de917979ae 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
@@ -401,7 +401,7 @@ public class MapView extends FrameLayout {
}
/**
- * You must call this method from the parent's Activity#onDestroy() or Fragment#onDestroy().
+ * You must call this method from the parent's Activity#onDestroy() or Fragment#onDestroyView().
*/
@UiThread
public void onDestroy() {