material-components / material-components/material-components-android

MaterialAlertDialogBuilder - prevent dismissing when positive, negative, or neutral button is click

Open
#3,045 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: Dialog
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

Is there a way to prevent the auto dismissal of alert dialog when the buttons are clicked? Providing a method in the builder class would be really great.

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

Start by reviewing MaterialAlertDialogBuilder and how its positive, negative, and neutral buttons handle clicks and dismissal. Define a builder-level way to prevent automatic dismissal for those buttons, with completion shown by coverage for the requested button behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.