osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.66k stars 1.02k forks source link

Prevent Android Auto opening the landing screen on launch #21084

Open pagrey opened 1 week ago

pagrey commented 1 week ago

Describe the idea

Is is possible to prevent the initial menu or landing screen from appearing when Android Auto or AA is launched? This doesn't happen on the App. I don't mind doing a custom build if somebody could point me in the correct direction. I've been looking through the source files and making a few changes but haven't had any success. NavigationSession.java and the LandingScreen.kt is generally where I've been looking. Any help would be appreciated.

Expected behaviour

Android Auto should act like the App.

Alternatives you've considered

A custom build is fine.

Context

No response

vshcherb commented 1 week ago

What do you mean by the initial menu or landing screen? Any screenshot?

pagrey commented 1 week ago

The landing screen is shown here in the documentation. It's the menu shown with "Free ride" at the top.

vshcherb commented 1 week ago

Got it. Probably you can disable items here https://github.com/osmandapp/OsmAnd/blob/40d04a7b639261ea6161598f87b43588245a1ec3/OsmAnd/src/net/osmand/plus/auto/screens/LandingScreen.kt#L89 or choose different template

pagrey commented 1 week ago

I appreciate the help, I don't want to disable or edit the landing screen. It is required to interact with OsmAnd while running in Android Auto. I want to prevent it from appearing when OsmAnd is launched.

vshcherb commented 1 week ago

Good question