History log of /packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
664f6dacca97281e852bbb7fd8094a329d299d9a 31-Aug-2016 Phil Weaver <pweaver@google.com> Make sure setting switch bar state is announced.

When the switch is clicked, a TYPE_VIEW_CLICKED a11y
event is produced. It works fine if the switch bar is
clicked, but if the switch itself is clicked the event
comes from the switch, which is marked as not important
for accessibility. Re-dispatching events from the switch
as coming from the switch bar makes sure that the event
comes from a view that accessibility services can see.

Bug: 30484493
Change-Id: Ie48cc78594c64b1cc5735475e1cb5959fadaaf4a
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
6d2a0c80df01a95adccfbb5926b1c463b60f6366 01-Aug-2016 Fan Zhang <zhfan@google.com> Log switch toggle action whenever its status changes.

Bug: 30110675

onClick is only called when the switchbar is clicked. We also need to
log when switch itself is clicked.

Change-Id: I892b72daeefe0f36608a73fe509199e200376eb7
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
1753dfd5cd5aaeb4c5ed9e2e9e10f13f89bf37d2 15-Jun-2016 Chris Wren <cwren@android.com> log as counters instead of histograms

this will interoperate better with UMA

Bug: 26687914
Change-Id: Ie63b2be2d457054c96b070ada3bb92141ab1fb5a
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
115d15763d95c2f93a639ad2569037d274d46a22 07-Mar-2016 Sudheer Shanka <sudheersai@google.com> Adjust restricted lock positions as per new design.

Bug: 27263531
Change-Id: I7e38a9e3356ca43ed936de1e6f8190eba4d4773e
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
e4ebcd12be7baae58a1fabcda6c7544c911c95eb 21-Feb-2016 Jason Monk <jmonk@google.com> Add generic logging to Settings switch bar

Same usage/format as the shared preference logging.

Bug: 27043208
Change-Id: I7a7a5c0a9c92ec6cef50df58313016218cf2f2f7
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
e88a05601c1a69ca77b05eaab4cc10a0efdf1e05 18-Feb-2016 Anna Galusza <agalusza@google.com> Don't read state twice ("on on"/"off off") in Settings Toggle preferences.
Bug: 26967006

Change-Id: I329aabc577ed8b3dc56fe86d9f7bc8f64461c2a0
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
0285c806647ad7e84302044587b56e9d1c918b85 30-Jan-2016 Anna Galusza <agalusza@google.com> UI fixes (back arrow, blue switch bar, append whether Talkback is on to
summary), Talkback no longer disabled when preference is tapped, fixes
SettingsPreferenceFragment to not check parent class to determine whether to
show options menu.

Change-Id: I3345e1a878f51b4387ca1bfe89855339617a94d6
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
9c32468cd59cbe5b8e7692235a67034c936b4788 18-Jan-2016 Sudheer Shanka <sudheersai@google.com> Add padlocks to more preferences that can be disabled by policy.

Change-Id: I7cc999dd1d46c20c888e0ba67053564e4d50946b
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
c99d0a8a797aba4ec75ffdc766a3ca131ab84103 28-May-2015 Maxim Bogatov <maximbogatov@google.com> Make whole switchable header act as single Switch for
AccessibilityService

second part of b/21305287

Change-Id: I80da2ecbc367e10d027a851193f4d03ab8e09c69
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
b47b2c3f6af650441f8069b87d0d82549913f7c5 04-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Move zen mode preference to switch bar.

- Add summary line support to SwitchBar.
- Remove obsolete strings.
- Wire up switchbar to zen mode w/ dialog prompt.
- Remove obsolete callback pref helper.

Bug: 20064962
Change-Id: Ifede00b5d43d441ccd94db96bd2796bc57d1a990
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
9a23adf69dc53126c9858b19760eab5b67c23b97 18-Mar-2015 John Spurlock <jspurlock@google.com> Settings: Remove all unused imports.

Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
b18e2423667b132d8de428fdbdb32572a1befe62 19-Aug-2014 Lifu Tang <lifu@google.com> Set switch to the correct enabling state

- Fix b/16951708

Change-Id: I4f9a2a374a771fd353fca436a0d34644f9bc8320
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
09be4b3c87998b9dca99383cb03c71c0889a01a7 23-Jul-2014 Alan Viverette <alanv@google.com> Stop using framework-private switch asset

BUG: 16467249
Change-Id: I0829c3dea522cf59e0f92046ea7c6092d416ad4c
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
1b18665dbc49663f290859ce9cdf3237b8a30b7c 16-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #16319697 ACTION_DEVICE_INFO_SETTINGS intent causes Settings app to crash

- fix the way we are passing switchBarMarginStart / switchBarMarginEnd

Change-Id: Ic6e67643be10877a74ae68075460fa5fd4cc5da1
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
006b2cca1311e61472a8b66fb0c50854fc36d2e7 28-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15897505 Talk back state shows "off" while the talk back is still enabled.

- we were missing the update of the TextView from the SwitchBar so provide a new
setCheckedInternal() method that is doing the TextView and Switch update at the
same time

Change-Id: I6dd9c472a386bb534a58fbf5cf82d9d01fa74f6c
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
d2b1e441b7314640b2c51ca367c6cc3925147a81 28-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #15939648 "Use TalkBack ?" is shown after orientation change even if it was OFF before

- prevent onSaveInstanceState() on the ToggleSwitch
- fix missing setOnCheckedChangeListener() when restoring the SwitchBar state

Change-Id: I818577004f142be46fa378389f264c7f37cfd7b8
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
138ff8c0457c6e1345015973668d652fa17c7c3b 12-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Make the SwitchBar appear immediately

- change the way the SwitchBar is shown and hidden
- save its state
- remove the delay transition code

Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
e9cb75c636234e44c94b38a877f3c60091d907dc 03-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Entire Switch bar should be a touch state

- add click listener for toggling the Switch and its text
- add Ripple background to the SwitchBar to make a nice Ripple
when there is a click/touch

See bug #15385724 Entire Switch bar should be a touch state

Change-Id: I26ef77ace596029e9c3e1e17b153b54df4a9110e
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
6220275d6dec8ffc6f1df2cbfbf42934d09d41f0 16-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Use SwitchBar for Accessibility Settings

Deals with Talkback / Captions / Magnification Gestures

- follow up CL to 41937766981423c9252e12e3319b2e7532739627

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: Ibda0ed05b399f1b2b4464c5b22a3e9fd3d378867
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java
41937766981423c9252e12e3319b2e7532739627 14-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Introduce SwitchBar widget

- SwitchBar is a LinearLayout that containts a TextView and a Switch and
is intended to replace all Switches that are put in the ActionBar as a
custom view
- use the new SwitchBar for WifiSetting only for now (a later CL will
take care of all the other Setting that are using a Switch in the
ActionBar)

Related to bug #14898161 On/Off switches must move down from Action Bar

Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
/packages/apps/Settings/src/com/android/settings/widget/SwitchBar.java