Skip to content

Commit

Permalink
Fix AA navigation restored started on the phone (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
vshcherb committed Nov 22, 2024
1 parent e9cddcf commit 47a11b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
3 changes: 3 additions & 0 deletions OsmAnd/src/net/osmand/plus/auto/NavigationSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ public void startNavigationScreen() {
if (routingHelper.isFollowingMode() && routingHelper.isRouteCalculated() && !carNavigationShouldBeActive) {
startCarNavigation();
}
if (routingHelper.isRouteCalculated()) {
routingHelper.resumeNavigation(); // to update navigate session immediately with location
}
}


Expand Down
8 changes: 0 additions & 8 deletions OsmAnd/src/net/osmand/plus/auto/screens/LandingScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,7 @@ class LandingScreen(
.setBrowsable(true)
.setOnClickListener {
app.carNavigationSession?.let { carNavigationSession ->
if (app.routingHelper.isRouteCalculated) {
app.routingHelper.resumeNavigation()
}
carNavigationSession.startNavigationScreen()
// duplicate code from startNavigation
// val navigationScreen = carNavigationSession.navigationScreen
// navigationScreen?.let {
// screenManager.push(navigationScreen)
// }
}
}
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ class POICategoriesScreen(
private fun onClickPOICategory(group: PoiUIFilter) {
selectedPOIGroup = group
Handler(Looper.getMainLooper()).post {
screenManager.push(
POIScreen(
carContext,
settingsAction,
group)
)
screenManager.push(POIScreen(carContext, settingsAction, group))
}
}

Expand Down

0 comments on commit 47a11b3

Please sign in to comment.