-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make MapboxNavigationApp.setup create new instance #6288
Conversation
765ea8a
to
ba07b01
Compare
Note that Android Auto still has issues with each example in the phone re-creating different versions of MapboxNavigation. Those issues will be resolved by this #6141 |
Codecov Report
@@ Coverage Diff @@
## main #6288 +/- ##
============================================
- Coverage 68.83% 68.82% -0.01%
Complexity 4414 4414
============================================
Files 663 663
Lines 26493 26490 -3
Branches 3111 3111
============================================
- Hits 18236 18233 -3
Misses 7075 7075
Partials 1182 1182
|
ba07b01
to
830cae8
Compare
830cae8
to
0d9ae0e
Compare
static-analysis failed with the same issue i'm finding over here #6234 (comment) |
c16510c
to
4406ce4
Compare
@@ -598,6 +598,7 @@ jobs: | |||
|
|||
static-analysis: | |||
executor: ndk-r22-latest-executor | |||
resource_class: medium+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have been running out of memory specifically with the Run android lint
job
Description
We have been discussing an issue where the examples need to call
disable
to have their newNavigationOptions
accepted by theMapboxNavigationApp
MapboxNavigationProvider
toMapboxNavigationApp
mapbox-navigation-android-examples#129 (comment)MapboxNavigation
calledrequireMapboxNavigation
#6233 (comment)The solution was to add a disable into the "orchestrating" activity. Which is the MainActivity that helps you select different examples.
The problem with that is that it breaks Android Auto while you're selecting an example. The whole point of this is to make the examples work well with Android Auto.
Why this new solution is being considered desirable, is because there is a
MapboxNavigationApp.isSetup
function available. If you really do not want to trigger a recreation, that option is available. The new setup function puts more trust into the caller that they know setup will trigger a new instance ofMapboxNavigation
.