summaryrefslogtreecommitdiff
path: root/core/java/android/preference/TwoStatePreference.java
Commit message (Collapse)AuthorAgeFilesLines
* 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: I534e3fd1305e2f4af076986770033478448a665c
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Deprecates framework Preference classesLouis Pullen-Freilich2018-11-191-0/+7
| | | | | | | | | The AndroidX Preference Library is the recommended way to build settings screens moving forward. Bug: b/114357488 Test: n/a Change-Id: I3b3bff2daf43d8239d8bf247a9c2acebbc6374eb
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-171-0/+2
| | | | | | | | | | | | | | | | For packages: android.preference 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: I31a80552a66554d876edd01950df368c31239c2b
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-2/+3
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* Fix accessibility events emitted from TwoStatePreferenceAlan Viverette2014-09-021-26/+3
| | | | | | | | | | Removes redundant and conflicting events emitted from check and switch preferences. Sends VIEW_CLICKED accessibility events from AdapterView rows after calling their on click listeners, which ensures data is consistent. BUG: 16961152 Change-Id: I4b57bceec6830d775c2da57226b8ee482242caf7
* am 23d6b7b3: am 618f8cc5: Merge "Don\'t leave space for summary text if ↵Amith Yamasani2013-09-101-3/+4
|\ | | | | | | | | | | | | it\'s an empty string" into klp-dev * commit '23d6b7b36096eef53f819ee5eee0aba3beecde67': Don't leave space for summary text if it's an empty string
| * Don't leave space for summary text if it's an empty stringAmith Yamasani2013-09-091-3/+4
| | | | | | | | | | Bug: 10639567 Change-Id: Ifeb71ea0779a86e39fe55fb0bc6cd267dba4a92e
* | Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-2/+6
|/ | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Don't assume a default of 'false' for TwoStatePreferenceAdam Powell2012-08-101-3/+9
| | | | | | | | | | | | | | | | TwoStatePreference would treat a default value of false as having no effect since it matched the initial value of the internal field. This caused asymmetric behavior around persistence and listener notification when the default was true (persisted) vs. false (not persisted). Standard behavior for most Preferences is to persist the default value. Make TwoStatePreference (CheckBoxPreference and SwitchPreference) follow this pattern. Bug 5722690 Change-Id: I8b3cf55efc5dfd573b511913b48ced017f0432d8
* Improving accessibility feedback for two state widgets.Svetoslav Ganov2011-07-291-33/+14
| | | | | | | | | | | | 1. Added population of sensible text for the state of the two state controls such as CheckBox, Switch, etc. This is important since if they are in a layout manager which fires an accessibility event there should be a description of the widget. bug:5092552 Change-Id: Ie3ca955653563496b84db379ae23a23fe88089a8
* Updating the data base upgrade/creation code for the new touch exploraion ↵Svetoslav Ganov2011-07-281-1/+2
| | | | | | | | | | | setting. 1. Update the database creation/upgrade code to take care of the new setting to enable touch exploration. 2. Made the tocuh exploration settings persistent to the cloud. Change-Id: Ie24e9184b4a21869432d11d207cb6464fadbac3b
* TwoStatePreference does not fire click events.Svetoslav Ganov2011-07-221-21/+24
| | | | | | | | | | | | | 1. Event were send in onBindView but since we have fixed the bug of unattached views firing accessibility events and there is no guarantee that the view is attached in onBindView no events were sent. Now posting a runnable so on the next run the UI tread will send the event i.e. after the view is bound and attached. bug:5008841 Change-Id: I4ed914f7fb65d6896f0c55e7c46e6508d2b2f11f
* Add SwitchPreferenceAdam Powell2011-06-081-0/+309
Change-Id: I073e9bfba8c4e1a625c27f976f71ea56a81ba20f