Update comment from onDestroy to onDestroyView (#10501)
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.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user