History log of /frameworks/base/core/java/android/preference/SwitchPreference.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
94f67e2af607df29a1c47e43ef6570fea46aa2b4 24-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5205275 - SwitchPreference doesn't allow Switch to slide back
and forth.

Also have the SwitchPreference's Switch widget's onClick listener
toggle the switch rather than invoke the preference's own onClick
method. This will allow subclasses to assign different behavior to
clicking the preference itself if desired.

Change-Id: I97e3b7a786e9f0e8bdc03c0ed6001caa7dcd991b
/frameworks/base/core/java/android/preference/SwitchPreference.java
7650259a597dd24137420d32acc35efc44db381e 29-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Improving accessibility feedback for two state widgets.

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
/frameworks/base/core/java/android/preference/SwitchPreference.java
5c3ea06a7a5558509545450ccc465d695bd1a2e6 23-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> TwoStatePreference does not fire click events.

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
/frameworks/base/core/java/android/preference/SwitchPreference.java
be0a4535053bbfdebd215e244b154ac810fd8edc 30-Nov-2010 Adam Powell <adamp@google.com> Add SwitchPreference

Change-Id: I073e9bfba8c4e1a625c27f976f71ea56a81ba20f
/frameworks/base/core/java/android/preference/SwitchPreference.java