History log of /frameworks/base/core/java/android/preference/SwitchPreference.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
996a63859fd6e1e77f88ae465afa2c71e4dd3245 03-Sep-2014 Alan Viverette <alanv@google.com> Fix accessibility events emitted from TwoStatePreference

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
/frameworks/base/core/java/android/preference/SwitchPreference.java
4d065a04ce42c07569cf20651c949c4da97aa4a9 12-Jul-2014 Alan Viverette <alanv@google.com> Remove old listener when rebinding SwitchPreference

Also fixes switch animation during scrolling, unnecessary call to
requestLayout() on drawable invalidate, and potential NPE.

BUG: 16225972
BUG: 4312303
Change-Id: I015d1f03206dd2c812592b0abfa4214a3de73d3f
/frameworks/base/core/java/android/preference/SwitchPreference.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/preference/SwitchPreference.java
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