Skip to content

Commit

Permalink
Move view registration for navigation view as early as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Nov 29, 2024
1 parent 3a7488c commit 6572471
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle
_mapConfiguration.apply(to: _mapView)

super.init()

_navigationUIEnabledPreference = navigationUIEnabledPreference
applyNavigationUIEnabledPreference()

registerView()

_mapView.delegate = self
_mapView.viewSettledDelegate = self

_navigationUIEnabledPreference = navigationUIEnabledPreference
applyNavigationUIEnabledPreference()
}

deinit {
Expand Down

0 comments on commit 6572471

Please sign in to comment.