Commit Graph

38 Commits

Author SHA1 Message Date
Fabrice Di Meglio
6220275d6d Use SwitchBar for Accessibility Settings
Deals with Talkback / Captions / Magnification Gestures

- follow up CL to 4193776698

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

Change-Id: Ibda0ed05b399f1b2b4464c5b22a3e9fd3d378867
2014-05-15 17:44:26 -07:00
Fabrice Di Meglio
5160536df9 Code refactoring
- move ToggleSwitch to the widget package

Change-Id: Id277fc11c78363bf7d7b229ef9ae91c1ec5d6774
2014-05-15 15:55:33 -07:00
Fabrice Di Meglio
15826d4ea1 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
2014-05-13 13:10:34 -07:00
Alan Viverette
b2d5e81074 Merge "Simplify accessibility display adjustments" 2014-05-12 23:05:15 +00:00
Alan Viverette
02d1aec286 Simplify accessibility display adjustments
BUG: 14680114
Change-Id: Ifd66256f4a8301d4c159f62a4211a2fbaaa6111a
2014-05-12 15:13:54 -07:00
Alan Viverette
2e1bf8a478 Allow restore instance before setValues() in ListDialogPreference
BUG: 14570831
Change-Id: I0fd24acab5221d1414f749ec18e70a72f36cc5e4
2014-05-12 12:30:43 -07:00
Fabrice Di Meglio
bb26141ddf Enable Search result highlight for Accessibility and IME settings
- add missing keys
- update Database version to force re-indexing (because the keys
were missing)

Change-Id: I7533d86b0f9d79d838e5c16d4bc51b7b09dffae5
2014-04-21 13:27:23 -07:00
Fabrice Di Meglio
0bae067a99 Fix bug #14118555 NPE in settings app when it is launched by UiAutomator
- prevent the potential NPE

Change-Id: I428f49c4ee55fb1e8fe121b27dd12e21eced4dad
2014-04-16 17:18:24 -07:00
Alan Viverette
f6cbcdebbd Use action bar widget context for accessibility toggle switches
Change-Id: I078968b3f4f59439743356e9fe241cdf385deef6
2014-04-15 17:08:47 -07:00
Svetoslav
b4b30828e9 Adding search for dynamic accessibility settings.
The accessibility service list is dynamically constructed, therefore we
need a local provider that will emit accessibility service data to be
indexed.

bug:13928519

Change-Id: Idd29cd1698f36b54fabf013dfa36029412bbb8a9
2014-04-11 17:15:34 -07:00
Svetoslav
177618fac5 Remove unused fields and imports.
Change-Id: If95879a506a9657b3dd370a35c1060712dcb9e93
2014-03-12 12:48:16 -07:00
Alan Viverette
061333c26b Remove toggle switch on accessibility preference fragment detach
BUG: 13169998
Change-Id: Id6bac95feb53fec7bb56e6af5c7f5e407e8eba55
2014-02-24 17:57:44 -08:00
Alan Viverette
bc02ced9fb Set caption preview font size in dips
Change-Id: I9844b6f927b557b46f23c6211b5be47647002ab8
2014-02-17 13:34:37 -08:00
Fabrice Di Meglio
263bcc8b73 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
2014-02-03 16:36:46 -08:00
Alan Viverette
d07c16107d Additional caption settings for edge styles and window color
Change-Id: Ib967bc566a7b8f7674c696fc05d799e12269ec42
2013-12-19 11:31:36 -08:00
Alan Viverette
72cb46f1b7 Update A11y service dialog for explicit create() before getButton()
Change-Id: Ic0fb7e2e7985dd3d3b65e40a639ab5fc0f5a8fd5
2013-12-11 16:07:00 -08:00
Alan Viverette
22b70376ed Merge "Accessibility: filter touches to Enable button" 2013-12-10 21:58:45 +00:00
Alan Viverette
24ef59737b Remove dialog offering to download TalkBack
GMS devices are required to have at least one accessibility service
installed, and AOSP devices will not have Play Store, so this dialog
is obsolete.

BUG: 10429642
Change-Id: I08db466b305a4a73c35325656d143afdfcecf061
2013-12-10 13:19:13 -08:00
Alan Viverette
96118a4d53 Accessibility: filter touches to Enable button
To prevent tap-jacking, filter touches to the enable button if there is
another window obscuring the screen.

Bug: 11242907
Change-Id: I0228cd480faf8e7ebf70394d9bb60fa2e4138fb4
2013-12-09 19:08:36 -08:00
Alan Viverette
205cee4c1c Add preference for caption text opacity
BUG: 11990225
Change-Id: Ib7dd92fd3e44931a1a4a2603effb02550b4fbc59
2013-12-05 11:27:40 -08:00
Alan Viverette
4098dba253 Remove extra fragment in captioning preferences
BUG: 11813771
Change-Id: Ied0b268aca93d7081cdcee1ea9db6347a762e3ac
2013-12-04 17:19:24 -08:00
Kenny Root
856c998aab am d0e1c273: am 279c1e15: am d0de39e7: Merge "Revert "Accessibility: filter touches to Enable button"" into klp-dev
* commit 'd0e1c273dbf9518b84a0a6f8bdcaa14f13246110':
  Revert "Accessibility: filter touches to Enable button"
2013-11-06 15:17:49 -08:00
Kenny Root
b974fa8034 Revert "Accessibility: filter touches to Enable button"
This reverts commit 94d4f23dcc.

Change-Id: I26a77faed6798e5bf1d51048ffde4aa8b35aae2f
2013-11-06 22:03:52 +00:00
Kenny Root
0ea0a07c84 am 8f40097e: am 18964c90: am 8cc60da4: Merge "Accessibility: filter touches to Enable button" into klp-dev
* commit '8f40097e169232f9813ad3cf8e8e0a280106de16':
  Accessibility: filter touches to Enable button
2013-11-05 12:02:08 -08:00
Kenny Root
94d4f23dcc Accessibility: filter touches to Enable button
To prevent tap-jacking, filter touches to the enable button if there is
another window obscuring the screen.

Bug: 11242907
Change-Id: I0228cd480faf8e7ebf70394d9bb60fa2e4138fb4
2013-10-16 10:10:47 -07:00
Svetoslav
b4463e650b Fix settings title
Change-Id: I203c577693700ef60197800632e8c33bc552ef5f
2013-10-02 18:37:13 -07:00
Alan Viverette
fc0ab213b8 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
2013-10-02 16:36:33 -07:00
Svetoslav
24e49f0613 Polish print settings accessibility.
bug:10983508

Change-Id: I986e28a2cd8e52b7c8422e825de9174d6e2377c3
2013-10-02 15:16:16 -07:00
Alan Viverette
c402322a5b Restore default locale in Captioning Settings
BUG: 10967083
Change-Id: Id607a108d3d56a89fcecf345d2e12af88dc38690
2013-09-27 12:22:34 -07:00
Svetoslav
17e72aa90b Ignore print service settings activities if they are not exported.
1. The print spooler cannot start not exported activities and they
   should not be started from another application anyway. Therefore,
   we do not start them from settings too even though settings can
   do that since it is signed with the platform certificate.

2. Adding some string changes to meet the translation deadline.

bug:10680224

Change-Id: I69c189e1c502985aceb68d269492f2e86de44ec4
2013-09-15 03:00:54 -07:00
Alan Viverette
5ea751e48f Update captioning settings to match revised API
BUG: 10461210
Change-Id: I44d1fdeaead4357ff2591db6d9dda1c8a231103c
2013-08-27 11:11:00 -07:00
Alan Viverette
e873aeb3a6 Update caption preferences to use SubtitleView
Change-Id: I02230669c5e7be36006e04bb7110446265f122d9
2013-08-21 13:58:07 -07:00
Alan Viverette
c30f124c91 Fix background and line wrapping in CaptionTextView
Also fixes where two style names were accidentally switched,
makes the font sizes larger, and cleans up the CaptionTextView
styling APIs in preparation for moving it into the framework.

BUG: 10396663
Change-Id: I00999723a67bce2659d913b70dd4420ed32f955c
2013-08-20 15:58:38 -07:00
Alan Viverette
c0f79432cf Merge "Update captioning settings to match final design" into klp-dev 2013-08-09 19:11:25 +00:00
Alan Viverette
660223ff43 Update captioning settings to match final design
BUG: 9926077
Change-Id: I058c05643f33aca89327f23bcdee53dd8afb3bbb
2013-08-08 12:51:54 -07:00
Svetoslav
3f257c4dfb Fix a crash in accessibiility settings.
Change-Id: I27920668191742ab032de7b71c8f71cc35432e9f
2013-08-08 12:37:48 -07:00
Alan Viverette
cc0e782871 Add captioning preferences screen
BUG: 9926077
Change-Id: Iea141d5d6fd0e4f134c36c51d89830b3c31abd09
2013-08-06 13:53:58 -07:00
Alan Viverette
341ff66e03 Move accessibility settings to their own package
Change-Id: I5822bf4a81f5ade4ee0649ed30c2daa40d7e8fe2
2013-07-18 17:49:33 -07:00