Skip to content

app_alert: accept is yes on a dialog of one or two buttons; --button presses one - #11

Merged
lana-20 merged 1 commit into
mainfrom
alert-button
Oct 12, 2026
Merged

lana-20 merged 1 commit into
mainfrom
alert-button

Conversation

@lana-20

@lana-20 lana-20 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Follows mobiumdev/mobium#195 (CHALLENGES 305). accept and dismiss now mean yes and no on a dialog with one or two buttons. A dialog with three or more buttons is refused, and every answer says which button it pressed.

  • The second example's title said accept presses "the platform's accept button". It now says "Say yes to a dialog of one or two buttons".
  • The first example's title now mentions that the read lists the dialog's buttons.
  • A new third example, mobium alert --button "Don't Save", runs on the three-button alert. The caption is typed with a straight apostrophe, and it's translated for all five clients (PressAlertButton, press_alert_button, pressAlertButton).
  • All three examples were recaptured on the Android 15 emulator against Mobium at 38df00f. The read lists "KEEP EDITING", "DISCARD"; accept reports pressed "DISCARD"; the new example reports pressed "DON'T SAVE", and the app received "three-button: Don't Save".

Local results:

  • npm run check: 0 problems in canonical and all five languages.
  • npm run build: passed.

…ton presses one (mobiumdev/mobium#195)

The second example's title said accept presses the platform's accept
button; since #195 it is yes on a dialog of one or two buttons, a dialog
of three is refused, and every answer says which button it pressed. A
third example presses Don't Save on the three-button alert by caption,
with a straight apostrophe, in all five clients. All three recaptured on
the Android 15 emulator against Mobium at 38df00f.
@lana-20
lana-20 merged commit 9003d33 into main Oct 12, 2026
2 checks passed
@lana-20
lana-20 deleted the alert-button branch October 12, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant