Skip to content

Don't steal focus when text-to-speech (TTS) advances to next article #1077

@Perdellian

Description

@Perdellian

Issue details

Whenever Wallabag's text-to-speech integration finishes reading one article and advances to the next, the app comes up on screen in place of whatever other application the user was interacting with at the time.

For an example of this being more than a minor nuisance, it's especially troublesome when Wallabag is running in the background for drive-time audiobook-style article catch-up (controlled via bluetooth to comply with hands-free laws) while a mapping/navigation app is fullscreen in the foreground with turn-by-turn directions.
It is very possible to miss a turn because one can't get the GPS navigation app back up in time, all while trying not to crash as one crosses lanes over to the curb or exit …and the aging phone's app switcher is fiercely lagging.

Duplicate?

Didn't right off see other issue reports addressing this

Present behaviour

  • Text-to-speech finishes reading an article while Wallabag is in the background
  • Pageflip sound plays
  • Wallabag slides into the foreground, interrupting whatever else you're interacting with on the phone.
  • TTS continues reading the next article

Desired behaviour

  • Text-to-speech finishes reading an article while Wallabag is in the background
  • Pageflip sound plays
  • A notification (optionally?) announces the article/'track' change
  • TTS continues reading the next article

Steps to reproduce the issue

  1. Add multiple articles to Wallabag's unread queue
  2. Set text-to-speech playing any but the final article.
  3. Go to a different app while listening to the article
  4. Wait for TTS to finish reading the first article
  5. Fumble hurriedly to get back to whatever you were doing before the article change

Environment details

  • wallabag app version: 2.4.0 (226)
  • wallabag app installation source: F-Droid
  • Android OS version: 9
  • Android ROM: LineageOS 16.0-20200927-NIGHTLY-klte
  • Android hardware: Samsung Galaxy S5 / SM-G900T
  • wallabag server version: latest Docker image at time of writing.
  • Do you have Two-Factor-Authentication enabled?: no

Your experience with wallabag Android app

On the whole, vastly better than Pocket. Kudos on making the TTS controls actually usable while the article is visible and exposing seeking to bluetooth controls (and for putting seek buttons in the notification area so that my old Pebble Time's MusicBoss watchapp could figure it out even before the seek-not-skip option was added in 2.4)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions