termux / termux/termux-api

`termux-notification --type media` is broken on termux-api v0.50.1

Open
#540 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Problem description

All media buttons always use the defined action for --media-previous

Steps to reproduce

termux-notification --type media -t title -c content --alert-once --media-play "termux-toast play" --media-pause "termux-toast pause" --media-next "termux-toast next" --media-previous "termux-toast prev"

Expected behavior

should toast "next" when pressing the next button, "pause" for the pause button, ...

Additional information

  • termux-api application version: 0.50.1+ccacb68
  • termux-api package version (installed through apt): 0.57
  • Android OS version: 12L
  • Device model: M2101K6G
  • Screenshot:
    screenshot

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the issue with the provided termux-notification command and inspect the termux-notification media-button handling entry point. Done means the next, pause, play, and previous buttons each invoke their corresponding supplied action instead of all invoking the previous action.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.