mapbox / mapbox/mapbox-navigation-android

[Android Auto] Allow `ActionStrip?` in `MapboxScreenActionStripProvider`

Open
#7,327 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

`MapboxScreenActionStripProvider` was introduced in [this PR](https://github.com/mapbox/mapbox-navigation-android/pull/6681/files) with the aim of allowing customisation to 3rd party apps.

Right now it is not possible to return an empty list of Actions in the ActionStrip:
`java.lang.IllegalStateException: Action strip must contain at least one action`

A possibility would be allowing this interface to return `ActionStrip?` and handling the null case in the specific screen implementation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the introduction of MapboxScreenActionStripProvider in PR #6681 and trace its use in the specific Android Auto screen implementation. Confirm how a nullable ActionStrip should be handled when no actions are supplied; done means an empty action list no longer raises the Action strip must contain at least one action exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.