History log of /packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b0877b390d8d96da30775dcd6161ecec59f006d0 21-Apr-2018 Doris Ling <dling@google.com> Fix footer text not translated in Magnification settings.

- pass in the summary res id instead of the actual text when building
the launch bundle for the magnification settings.
- remove the title argument as we are passing the title res already,
which takes precedence.

Change-Id: I4ba624e1d9722aa980ea94c306df9a015a159555
Fixes: 78126057
Test: run i18nscreenshots
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
87d120a7e1571b8f7743c676cdf7a0d2cd82e7b1 11-Jan-2018 Fan Zhang <zhfan@google.com> Override switch bar string for wifi/battery saver screen

Bug: 69462439
Test: visual
Change-Id: I18d03ee1664f111222d7b9bb7ee893e4ce0e1343
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
4a01283309f737395a01f0fae68a369dc537a8da 14-Nov-2017 Doris Ling <dling@google.com> Remove the feature flag for using new title.

- remove all code that check for the feature flag, and use the new logic
by default.

Change-Id: I7fbe60da84c1c0f35e7241402a71d2bc4cd300e6
Fixes: 64564191
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
024668a2c5291bbd29b93b8aba8b28b06d16a2cb 03-Nov-2017 Doris Ling <dling@google.com> Remove duplicate preferences in Accessibility settings.

- addPreferencesFromResource() call has been added to
InstrumentedPreferenceFragment, and hence sub-class should not call it
again.

Change-Id: Ia016d9d407ac3f838c962d1ced585647382a051a
Fixes: 68820835
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
ed4685fafb470e6160f1a6d220e68a7d2ed039a4 25-Oct-2017 Doris Ling <dling@google.com> Update activity titles for fragments without preference screen.

1. Move getPreferenceScreenResId() from individual subclass to
InstrumentedPreferenceFragment.

2. Removed InstrumentedPreferenceFragment.getTitle() and let the
preference fragments that do not have preference screen set the activity
title directly instead.

3. Removed OptionsMenuFragment as all it does is call
setHasOptionMenu().
- changed subclasses of OptionsMenuFragment to extend from
InstrumentedPreferenceFragment directly.
- none of the exisitng subclasses actually implements the option menu
related methods to provide any option menu. So, the setHasOptionMenu()
call is not added to the subclasses.

4. Update Languages preference title.
- launch the fragment from the preference controller instead of from the
default handling, as we need the title res id at launch time to get it
work properly when retrieving the title from back stack.

Bug: 64564191
Test: blaze-bin/screenshots/android/i18nscreenshots/i18nscreenshots
Change-Id: Ibecdcab32cbaed8bf604ec5ebe0a926b4e489a7d
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
03a3b518debfb3870d780a6e29c8f115013cd866 18-Oct-2017 Doris Ling <dling@google.com> Update preference screen title.

- Add missing title to preference screen xml so that they will be used to
set the activity title when the fragment is launched.
- Also updated some incorrect preference screen titles.
- Overrides getTitle() in preference fragments that do not use the
preference screen xml.

Bug: 64564191
Test: blaze-bin/screenshots/android/i18nscreenshots/i18nscreenshots
Change-Id: Id72d5ddf18f0962bc484de8bbd847a2e55d6371e
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
ed5f0951f8799dae445cf1505a87b2456a8e070f 23-May-2017 Phil Weaver <pweaver@google.com> Follow O patterns for a11y settings

Move the summary for the toggled features to a footer.
Make the settings appear as a preference.

Bug: 36780887
Test: Start settings and observe the new UI looks a lot
like the mocks referenced in the bug. Also added unit
test to verify that summary text shows up.

Change-Id: I1d002b194991d0901ecb27198ba5de73bd23a5a9
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
e812350286503d225115425c3c47d667b1353822 06-May-2016 Clara Bayarri <clarabayarri@google.com> Remove invisible object in A11y Settings screens' menu

Bug: 28459491
Change-Id: I95250078bf6470d0bd4b6b40f25c13eb6aec93c8
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
b1795f554921249420bf588280396d6920541556 08-Jan-2016 Anna Galusza <agalusza@google.com> Make A11y SUW launchable from SUW and small UX changes based on last round of
UX studies.

Change-Id: I9c20cd3abf910a37731da2af604f3af2cd30e942
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
4148f17616173a0bb475ed3b09ed90fc17540cc6 23-Sep-2015 Lifu Tang <lifu@google.com> Explicitly ask for option menu in Fragments

If a Fragment needs option menu, it has to ask for it explicitly by calling
setHasOptionsMenu(true). If a preference screen contains help URL, this
method is called automatically in the base class. However, if a preference
screen doesn't have help URL, this method will not be called. So any other
extra option menu will not be added correctly.

Typically we won't be able to see this bug. Because on standard Nexus builds,
all settings screen have their own help URL. But on AOSP build, as help URL
is empty by default, if the vendor doesn't modify the resource to provide
their own help URL, we'll end up missing some of the option menus.

Bug: 24241310
Change-Id: Iaabc91a1d102e21254b518ec23459025efbdcc84
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
f61ead7ad619a9933b6d87f0ddf4506d05253ee1 04-Aug-2015 Jason Monk <jmonk@google.com> Make sure accessibility service desc isn't clickable

Bug: 21644974
Change-Id: Ic645a78382c5c8343b22254ce4844068735efce9
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
aaa066b66d4c8acf8931e624cf81376ac35d358e 20-Aug-2014 Alan Viverette <alanv@google.com> Add "experimental" subtitle to color correction and inversion

BUG: 17112912
Change-Id: I84eaa94e755bfcfbdf014fae09d1b02ae5d2eb4a
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.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/accessibility/ToggleFeaturePreferenceFragment.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/accessibility/ToggleFeaturePreferenceFragment.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/accessibility/ToggleFeaturePreferenceFragment.java
5160536df91bb9daa6cac9a878ce406deda791c6 16-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Code refactoring

- move ToggleSwitch to the widget package

Change-Id: Id277fc11c78363bf7d7b229ef9ae91c1ec5d6774
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
15826d4ea1428b3d1edb86866ca57a93c2252bda 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Mode code cleaning: remove obsolete references to EXTRA_NO_HEADERS

- the EXTRA_NO_HEADERS flag as no more meaning as we are showing
the Tiles (previously named "Headers") only in the Dashboard
(which is the main Settings screen)

Change-Id: I55656de0d28ca9c84adbe6647d870838b4ac230b
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
f6cbcdebbd8ffd56acabab77b9a877045282576c 16-Apr-2014 Alan Viverette <alanv@google.com> Use action bar widget context for accessibility toggle switches

Change-Id: I078968b3f4f59439743356e9fe241cdf385deef6
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
061333c26bbb848b8982b04d6043061cb2451a90 25-Feb-2014 Alan Viverette <alanv@google.com> Remove toggle switch on accessibility preference fragment detach

BUG: 13169998
Change-Id: Id6bac95feb53fec7bb56e6af5c7f5e407e8eba55
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
263bcc8b732dbb47d3ce63904e0e05191fabbad6 18-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Use Drawer in Settings app

- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
b4463e650b759f29410d5a614916b97be123aa6f 03-Oct-2013 Svetoslav <svetoslavganov@google.com> Fix settings title

Change-Id: I203c577693700ef60197800632e8c33bc552ef5f
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
fc0ab213b8637f4d9177ff5f08c4fdc155bbb941 03-Oct-2013 Alan Viverette <alanv@google.com> Add accessibility display adjustments to Settings

This will be redesigned soon, but for now it allows access to quick
setting tiles for testing display adjustments.

BUG: 9057596
Change-Id: I4b760487b2fe0a336b188930306000e5dfc01951
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java
341ff66e0374a46f89c51bca2ef55da368b7e40f 19-Jul-2013 Alan Viverette <alanv@google.com> Move accessibility settings to their own package

Change-Id: I5822bf4a81f5ade4ee0649ed30c2daa40d7e8fe2
/packages/apps/Settings/src/com/android/settings/accessibility/ToggleFeaturePreferenceFragment.java