summaryrefslogtreecommitdiff
path: root/core/java/android/app/AlertDialog.java
Commit message (Collapse)AuthorAgeFilesLines
* Change setButton() documentation to indicate that the settings will apply to ↵Neal Eckard2020-02-201-1/+1
| | | | | | | | the button specified, not just the positive button. Change-Id: I181c2eb9db7aedd51a52beba92bd7cf843aa795b Fixes: 149446677 Test: None
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I8789f8499d4dca08580672e9e45ed9a7026dd686
* Remove old private constant from ResourceId.Aurimas Liutikas2019-01-171-1/+2
| | | | | | Bug: 122967079 Test: make -j builds Change-Id: I3e999044df02549e84208d38bb77d2ce1d1bd73b
* Merge "docs: fixed button value in reference" into pi-devkopriva2018-09-131-1/+1
|\ | | | | | | | | | | am: 26bdd62ce5 Change-Id: I26f0b05b1bb2d2b1416fd664168c8be9ed3f558c
| * docs: fixed button value in referencekopriva2018-09-131-1/+1
| | | | | | | | | | | | | | | | | | Test: make ds-docs Bug: 36946449 Change-Id: I13d863e2cb0e94e51c3a274c8d27d58f7a7a78eb Exempt-From-Owner-Approval: Docs-only change
* | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.app.usage android.app.trust android.app.timezonedetector android.app.timezone android.app.timedetector android.app.job android.app.backup android.app.assist android.app.admin android.app This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I5d15d50344d7178617418846917f693cfabf006b Merged-In: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
* DO NOT MERGE Make "Want to start battery saver?" dialog better.Makoto Onuki2018-04-251-4/+15
| | | | | | | | | | | | | | | | - Don't line-break in "Battery" (only in English) - Add "Learn more" link. Bug: 78261259 Test: Manual test with: - adb shell dumpsys battery unplug - adb shell settings delete secure low_power_warning_acknowledged - Enable battery saver - Make sure the link is clickable if a link is set. - Make sure there's no "learn more" link if the link is not set in strings.xml Change-Id: I83364f628dd596a4d50bf2aca4db7cbfe7cf4909
* Add ResourceId validation helper methodAdam Lesinski2017-05-241-3/+4
| | | | | | | | | | | | | An invalid, 'null' resource ID is defined as 0. Apps often use -1. Add a helper method that makes checking valid IDs easy and more centralized. Eventually make it public API. Bug: 38393777 Test: manual Change-Id: I969ec4a45e86bdab3d7f57d357d475b77c7f8a78
* Valid resource IDs may be negativeAdam Lesinski2017-04-281-1/+2
| | | | | | | | | | Package IDs greater than 0x7f are interpreted as negative numbers in Java's signed integer. The proper check for existence of a resource ID is that it is not 0. Bug: 37498913 Test: none Change-Id: I446fb6abb514bf7cf2d0dcbfbd81dd5718cd2cb4
* Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-1/+1
| | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Modified AlertController to allow themes to specify custom implementation.Michael Kwan2016-05-161-1/+1
| | | | | Bug: 17733928 Change-Id: I0264ee8ceee09dbc33da61365c424c74d2e3c3d6
* Don't re-wrap alert dialog contextAlan Viverette2015-08-111-1/+2
| | | | | Bug: 23038618 Change-Id: Iafe3a45096153d9fe656ad930cc3978d8fab1968
* Fix application of default dialog themeAlan Viverette2015-04-101-5/+4
| | | | | | | Cleans up lint annotations. Bug: 20149703 Change-Id: I2ed4eb002b6679a55ea4d5fcc1ea958a4dcb08df
* Avoid double-apply of dialog themeAlan Viverette2015-04-081-5/+13
| | | | | | | Some cleanup of comments and code. Bug: 19924382 Change-Id: I7b1a339259cbaa66fea2ffec38d7dde2b1a9612e
* Clean up AlertDialog javadocs, add overlay theme for dialogsAlan Viverette2015-02-231-165/+272
| | | | | | | Also cleans up CheckedTextView javadocs. Bug: 19482450 Change-Id: I47559533784b19267e9381af10c456ce0d20d329
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-13/+17
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* Don't override dialog icon drawable unless valid resource ID was setAlan Viverette2015-01-051-1/+7
| | | | | | | | | | Fixes a regression where Builder.setIcon(Drawable) would get overridden even when Builder.setIcon(int) had never been called and was still 0. Fixes attribute id to respect all valid resource IDs (e.g. non-zero). Updates documentation to reflect the long-standing override behavior. BUG: 18904762 Change-Id: I905703993a59910555d5a858e0aaecab63221a02
* AlertDialog and AppError themes for TV.Craig Stout2014-05-131-0/+20
| | | | | | | | | | | | | | | | Leanback themes override AlertDialog styles from other themes. Makes system alert dialogs, and alert dialogs from games running on ATV, have a style more appropriate to television. Final visuals pending. Side button layout fixes DatePickerDialog and TimePickerDialog with dpad navigation. TODO: consider using side button layout for other AlertDialog cases (long messages and lists). Change-Id: I74e4e04d16d6854377580be95a87684a0385b04b
* Replace auto-create in findViewById() with explicit create() APIAlan Viverette2013-12-111-8/+2
| | | | Change-Id: Ib833cc23f4ae39b5d729db3d425faa7dfd5b3c4c
* Allow calls to AlertDialog.getButton() before dialog is shownAlan Viverette2013-12-091-4/+10
| | | | Change-Id: If0737ff53f3e500c2a946a18a753e279882965a2
* Allow alert dialogs to inflate custom view layoutsAlan Viverette2013-12-051-0/+17
| | | | | | | | | Adds APIs to set a layout resource ID as an AlertDialog's custom view. To make this useful for developers, also ensures that Dialog content is set up when calls are made to Dialog.findViewById() before show(). BUG: 11136748 Change-Id: I29747a28d7e30f4e31fe474424109ff29e1eaa98
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-1/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* docs: Fix a bunch of issuesScott Kennedy2013-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | External tracker 42609 External tracker 42607 External tracker 42604 External tracker 42600 External tracker 42574 External tracker 42450 External tracker 41050 External tracker 40995 External tracker 40970 External tracker 40935 External tracker 40507 External tracker 40481 External tracker 40435 External tracker 40406 External tracker 40297 External tracker 40281 External tracker 39978 External tracker 39929 External tracker 39803 External tracker 39715 External tracker 39441 Change-Id: If4215cef850ba8e4e8df356a68192566806e7914
* Initial draft of high-level multi-display APIs.Jeff Brown2012-08-311-2/+3
| | | | | | | | | | | | | | | This patch introduces the ability to create a Context that is bound to a Display. The context gets its configuration and metrics from that display and is able to provide a WindowManager that is bound to the display. To make it easier to use, we also add a new kind of Dialog called a Presentation. Presentation takes care of setting up the context as needed and watches for significant changes in the display configuration. If the display is removed, then the presentation simply dismisses itself. Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d
* Add setOnDismissListener to AlertDialog.BuilderAdam Powell2012-08-271-0/+18
| | | | | | | | | | Add documentation to setOnCancelListener to clarify that the cancel event plus the events for the various choice buttons are not the exhaustive set of ways the dialog can be dismissed, and that a dismiss listener should be used if the app needs to cover all cases of dismissal. Change-Id: I9e9d6f90f6f9ccaeb2c697474ab353e2d78f37b9
* docs: add developer guide cross-references, Project ACRE, Round 2Joe Fernandez2011-10-141-0/+6
| | | | Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
* Fix bug 5159736 - Make DeviceDefault the defaultAdam Powell2011-08-141-0/+16
| | | | | | | Have the framework refer to the DeviceDefault themes for ICS apps that don't explicitly request another theme. Change-Id: I27dd0bbaa60f71df4f36e47d260f556d923ba075
* Fix bug 4887033 - android.app.cts.AlertDialog_BuilderTest#testDisableCancelableAdam Powell2011-06-221-1/+4
| | | | Change-Id: I659201124c4c6730046be55a918c64ca57a9f4db
* Dialog-o-rama!Adam Powell2011-06-161-1/+1
| | | | | | | | | | | | | New styling for Holo dialogs. Now 76% easier for apps to create dialog-based layouts! (Less tricky padding and margin rules) Cancelable AlertDialogs now are canceled when the user touches outside. Dialogs in landscape mode will try not to fill the width of the screen. Change-Id: I621b5a19780883ee703a8492510451b480a0b8cc
* Fix issue #3398767: Need translucent holo themeDianne Hackborn2011-01-271-13/+61
| | | | Change-Id: I2ce87798ff58315cb96968ab06e5a52da9f35ef8
* Fix issue #3362484: Can't dismiss activity picker by tapping outside dialogDianne Hackborn2011-01-181-19/+2
| | | | Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
* Fix bug 3245465 - Themed dialog iconsAdam Powell2011-01-081-1/+24
| | | | | | | | | Added light/dark versions of holo dialog icons. Apps using AlertDialogs that wish to use the system dialog icon should use setIconAttribute(android.R.attr.alertDialogIcon) instead of setIcon(android.R.drawable.ic_alert_dialog). Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
* resolved conflicts for merge of 3a2c6bf0 to masterBrad Fitzpatrick2011-01-051-1/+1
|\ | | | | | | Change-Id: I1963d8fc391bb84de1054f2b20ce4e082d764cbe
| * am 69ea4e15: Documentation fixes found over vacation hacking.Brad Fitzpatrick2011-01-051-1/+1
| |\ | | | | | | | | | | | | * commit '69ea4e15e52c456537575d21443ac1efdb03a902': Documentation fixes found over vacation hacking.
| | * Documentation fixes found over vacation hacking.Brad Fitzpatrick2011-01-051-1/+1
| | | | | | | | | | | | Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
* | | Bug 3191746. atePicker TimePicker: Dark theme is used in a Light theme appSvetoslav Ganov2010-12-171-1/+0
| | | | | | | | | | | | Change-Id: I20d0cca3b78af9db80854a57c88d6cab3b00f555
* | | Fix Dialog generating multiple onCancel().Dianne Hackborn2010-12-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #3169193: com.google.android.youtube: java.lang.NullPointerException at com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324) A little protection against calling onCancel() after a dialog has been dismissed. Change-Id: I7a64c94703da012ce303308563e4a8ed3cb125d3
* | | New dialog assets. Cancelable AlertDialogs may now be canceled by tapping ↵Adam Powell2010-10-181-0/+19
| | | | | | | | | | | | | | | | | | outside. Change-Id: I061f09bd79a5f2b627fb0f01aba36f37449b849d
* | | Holo styling and metrics; holo spinnersAdam Powell2010-10-141-1/+0
| | | | | | | | | | | | Change-Id: Ib6d80e5e1a79b7a4ff208df8dbc097e7b9228d13
* | | Holo fixes and refinementsAdam Powell2010-10-121-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Fix Holo.Light dialog text color for system-created dialogs * Use the correct text anchor assets for selection mode * Temp fix for small holo light button metrics Change-Id: I974528418b69354961ea43abf8249c8caada8e17
* | | Holo theme progress and assets!Adam Powell2010-10-081-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Light and dark dialogs * Checkboxes and radio buttons * Toggle buttons Warning! This is still a work in progress. This does not include final metrics. Some assets (specifically dialogs) are currently misaligned.
* | | Added AlertDialog.Builder#getContextAdam Powell2010-09-281-2/+19
| | | | | | | | | | | | Change-Id: Ic3033a4eff67f507aa39dacfc4c8984a9ee142c1
* | | Holo themes and assets in progressAdam Powell2010-09-271-3/+13
|/ / | | | | | | Change-Id: Ic10480dc1c771d0ccd10f1d4014c945480fd6c0d
* | merge from open-source masterThe Android Open Source Project2010-06-181-1/+11
|\ \ | |/ |/| | | Change-Id: I05e4c26c902f3cfe0dd99107f518768b246562f7
| * Support custom themes with AlertDialog.BuilderMartin Nordholts2010-06-151-1/+11
| | | | | | | | | | | | | | | | Add a constructor to AlertDialog.Builder with a 'theme' parameter so that e.g. the buttons in a dialog built with AlertDialog.Builder can be themed. Change-Id: Ie1b1c9706ad2146c8b64dd91fe249c6855c6ac65
* | Fix bug 2523989Adam Powell2010-03-181-3/+3
| | | | | | | | | | | | | | | | AlertDialog's docs now refer to the id android.R.id.custom, the correct method addView, and android.R.id.custom has been exported as a public id. Change-Id: Ide43a03b702f0b36326130909f9a864872ec93fb
* | Deprecate fill_parent and introduce match_parent.Romain Guy2010-01-081-1/+1
|/ | | | Bug: #2361749.
* AI 145994: Integrate #145778 from Donut.Dianne Hackborn2009-04-131-1/+4
| | | | Automated import of CL 145994
* Automated import from //branches/master/...@142575,142575Romain Guy2009-03-251-1/+10
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+795
|