Skip to content

Commit

Permalink
correct usage of ZoneManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Tychinin authored and Pavel Tychinin committed Aug 2, 2024
1 parent 8f435f2 commit 9ab25a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1117,8 +1117,8 @@ private boolean loadSubLocation(int index) {
return false;
}

mLocationView.getLocationWindow().setSublocationId(mSublocation.getId());
return mLocationView.post(() -> {
mLocationView.getLocationWindow().setSublocationId(mSublocation.getId());
float pixelWidth = mLocationView.getWidth() / getResources().getDisplayMetrics().density;
mLocationView.getLocationWindow().setMaxZoomFactor((pixelWidth * 16.f) / mSublocation.getWidth());
mLocationView.getLocationWindow().setMinZoomFactor((pixelWidth / 16.f) / mSublocation.getWidth());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public synchronized static boolean initializeSdk() {
MeasurementManager = SDK.getMeasurementManager(LocationManager);
RouteManager = SDK.getRouteManager(LocationManager, NavigationManager);
NotificationManager = SDK.getNotificationManager(LocationManager);
ZoneManager = SDK.getZoneManager(LocationManager, NavigationManager);
ZoneManager = SDK.getZoneManager(NavigationManager);
} catch (Exception e) {
Log.e(TAG, "Failed initialize Navigine SDK " + e.getMessage());
return false;
Expand Down

0 comments on commit 9ab25a5

Please sign in to comment.