Skip to content

Commit 1d0bcca

Browse files
authored
Merge pull request #261 from SSipplAIT/fix-navigation-crash
Added ondestroy call to dispose nativeview method.
2 parents db34278 + a11c1f9 commit 1d0bcca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

map-view.android.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ export class MapView extends MapViewBase {
4444
}
4545

4646
public disposeNativeView() {
47+
if(this.nativeView){
48+
this.nativeView.onDestroy();
49+
}
50+
if(this._gMap){
51+
this._gMap.setMyLocationEnabled(false);
52+
this._gMap.clear();
53+
}
4754
this._context = undefined;
4855
this._gMap = undefined;
4956
this._markers = undefined;

0 commit comments

Comments
 (0)