Commit Graph

42 Commits

Author SHA1 Message Date
Jean-Baptiste Queru
eefa61ed2e Merge "Settings: Use ICS alert drawable" 2012-08-13 11:53:46 -07:00
Jeff Brown
b5858bbdc3 Fix NPE in rotation lock content observer.
Bug: 6647846
Change-Id: Idd17edb78f451807eabdd988017b68ce02b9c75f
2012-06-12 12:57:11 -07:00
Jeff Brown
10fbf52ccb Implement new rotation policy.
Show "auto-rotate screen" option in Display only if the Rotation Lock
feature is not available on the device.

When the "auto-rotate screen" option is disabled in Accessibility or
Display settings, hide the Rotation Lock feature.

Use new RotationPolicy class to adjust rotation settings.

Bug: 6523269
Change-Id: Ifa89ff055e5ad0a00888e10720dd76b0054fe290
2012-06-05 17:53:35 -07:00
Björn Lundén
e7c53b1c9e Settings: Use ICS alert drawable
Point to the correct holo alert drawable.

Change-Id: Ia15aaa028c8371cb2478baeecd2da31520c43a5d
2012-05-31 23:35:24 +02:00
Svetoslav Ganov
3aa58b0f35 Lock screen rotation accessibility preference not updated.
1. If the lock screen rotation preference is changed from the
   status bar the checkbox in the accessibility settings was
   not updated.

bug:6562028

Change-Id: I353e3ad59374ad207297d2a6682e50ed07df820c
2012-05-29 17:36:51 -07:00
Svetoslav Ganov
2121f097c0 Updating the checkbox state to match the title.
1. Now the the setting is names lock screen rotation
   which is the opposite as it was before so this
   patch reverses the checkbox state.

bug:6507335

Change-Id: Ic0aab21fa70871f64e37ac05f7917d69f9c0a0df
2012-05-18 18:00:31 -07:00
Svetoslav Ganov
ec94c78ec8 Removing explore by touch from settings.
1. Now accessibility services request this mode and
   we show a dialog so the user can give a consent.
   Accessibility servces can toggle this mode at
   runtime from their settings, for example.

bug:5932640

Change-Id: Id4d3e9c83c488f97b7e53d4baadf7de886958a4d
2012-05-18 12:35:58 -07:00
Dianne Hackborn
0c2cd20d53 Update to follow API change.
Change-Id: Ife399fb336016cfa8faadf655d887ae611c6ad9b
2012-04-20 10:37:42 -07:00
Svetoslav Ganov
63ad27860b AccessibilityService description not internationalized (Settings).
bug:5807616

Change-Id: Iab6cf000ce1029ab253d56cb8abe222ad3204e6d
2012-01-03 17:04:29 -08:00
Svetoslav Ganov
7e8dcbea65 Adding a system preference whether to speak passwords in accessibility mode (settings).
By default we do not speak passwords if the user has no headset. However,
many users find this too restrictive and would like a way to enable
password announcement. While we cannot speak the passwords all the time
,to avoid leaking them, we expose a preference so each user can choose
the option that best works for him/her.

bug:5712607

Change-Id: I1a6e95c392c18dc8d7406b1cef49705756b31254
2011-12-05 13:09:27 -08:00
Svetoslav Ganov
96832f8cce Accessibility service toggle setting state not preserved on screen rotation.
The state of the toggle switch for enabling/disabling an accessibility service
is not preserved on screen rotation after its state has been changed once.

bug:5478062

Change-Id: Ie453f78bc07dcd39d88bb4acf260768eccc73a74
2011-10-18 11:58:25 -07:00
Jeff Brown
cbf312ec29 Use WM APIs to change rotation preference.
Bug: 5371750

Changing the system setting directly results in inconsistent
behavior among the three different places where "auto-rotate"
settings appear in the UI.  Use the WM APIs instead.

Change-Id: I1a8239af66b1cc3aeec8310383e72fc96c878d73
2011-10-05 16:12:27 -07:00
Svetoslav Ganov
cb0a7a82a6 Settings may show enabled accessiiblity services after restore even if accessibility is off.
Now the state of accessibility is determined from the number of running, i.e. enabled and
installed, accessibility services - more than zero access is on else it is off. After a
restore the device may have some enabled and installed services but disabled accessibility
setting. In such case settings should respect the restored values and the services should
be displayed as disabled initially and then enabling one of them will enable accessibility.

bug:5367404

Change-Id: If3756aba3f59e282000247e99f87ebff2b64c9fd
2011-09-23 16:47:41 -07:00
Svetoslav Ganov
232d031a13 Accessibility settings get into state not allowing to enable accessibility.
If the setting for enabled accessibility serivces contains a service that
is not installed on the device the system gets into a state that does not
allow enabling accessibility. This state is not recoverable.

bug:5343351

Change-Id: I6127ae00f7a16b190cfe43b68b8e71d49b10911e
2011-09-20 12:16:13 -07:00
Svetoslav Ganov
efe27bfcdb Enabled accessibility services settings may end with a separator.
SetupWizard was adding a separator after the last service name while
building the enabled accessibility services string. This case was not
handled by the settings. Added code to handle that case since it is
possible to have not well-formed settings backed up.

bug:5098493

Change-Id: I8381872037611a7456ca31526c85effdb9949885
2011-09-15 15:26:58 -07:00
Svetoslav Ganov
9b539cc584 Polish of the accessibility settings.
1. Some string changes according to updated UX specs.

2. Explore by touch now shown only if accessibility is on.

3. The one time dialog for installing TalkBack if no services
   are installed was not showing.

bug:5293099
bug:5286578

Change-Id: I633999f798b16e2910d95d541a7c33d1a4f296b9
2011-09-14 12:26:33 -07:00
Svetoslav Ganov
ea5a50a708 Update of accessibility settings
1. Removed the global toggle switch - now each accessibility
   feature has to be turned on or off separately.

2. Added a setting for the screen rotation (same as Dispaly)
   since most of blind users want that behavior.

bug:5166161
bug:5127475

Change-Id: I659aef62a8499461075f43520a3008fa7b8ff911
2011-09-01 10:25:23 -07:00
Amith Yamasani
1b52e0d024 Potential fix for NPE in AccessibilitySettings.
Bug: 5093363
Change-Id: I1e6b9bf0fd25b0298606035155bb87e6f64711c4
2011-08-12 11:14:51 -07:00
Svetoslav Ganov
6041c5ea97 Accessibility settings crash when run for the first time on clean device
Change-Id: I9bb0b9d1ab381ba00838b1be3a76f549f32be655
2011-07-29 15:49:24 -07:00
Svetoslav Ganov
1a97fa13d0 Polish of the accessibility settings.
Change-Id: Ifb32ec6745e566cf7ffafe20019b68d95661b45d
2011-07-29 15:11:33 -07:00
Costin Manolache
672b3c6576 Revamp of the accessibility settings.
1. Reimplemented accessibility settings accrding to UX design.

NOTE: The strings are not final, rather reasonable placeholders
   to avoid blocking on them. Will submit another CL with string
   updates and any necessary polishes.

bug:5065409

Change-Id: I3ba229a624298dbf238bc8562b42616b386f8c34
2011-07-25 12:17:01 -07:00
Dianne Hackborn
92c8ebacc1 Fix issue #4976176: Font size setting does not persist
Change-Id: Ie36c97680f43414b5cdc1615519527ba5e8fa902
2011-07-19 14:59:01 -07:00
Svetoslav Ganov
93a727d5d5 Merge "Adding temporary setting for enabling touch exploration." 2011-07-18 12:57:35 -07:00
Svetoslav Ganov
abc95ee822 Settings crash if android:settingsActivity AccessibilityServiceInfo XML is incorrect.
1. The code was not checking whether the settings activity exists
   before passing in to the SettingCheckboxClass.

bug:5038386

Change-Id: Iba4f5e2e5f6f3ed9c0fed5a5103d2e9a34399d97
2011-07-17 11:35:08 -07:00
Svetoslav Ganov
37d04f748f Adding temporary setting for enabling touch exploration.
Change-Id: I81cef6f3bf4e533da1082bf836a74e38fe718af3
2011-07-15 14:26:53 -07:00
Dianne Hackborn
00453157ae Add "large text" accessibility option.
Also re-arrange the UI a bit to clearly put the button for
enabling/disabiling accessibility services along-side said
services.

Change-Id: Ica1ddecddf6e97800909ba6bea9ce4e124b59c01
2011-06-23 16:36:43 -07:00
Svetoslav Ganov
6f0b4d8143 Accessibility service specific settings.
This is the settings part of the change for adding
support for accessibility service specific settings.

1. Added the first cut of a SettingsCheckBoxPreference
   that is a CheckBoxPreference that optionally takes
   an intent to be lauched as settings of the item
   represented by the preference.

2. Updated the AccessibilitySettigns to use the
   SettingsCheckBoxPreference.

Change-Id: If44262b8965c65620c6b8c252f8ef356eb0d95cf
2011-05-27 13:24:31 -07:00
Svetoslav Ganov
82623019d2 Adding system wide long press timeout configurability under accessibility.
bug:3505096

Added an option in the accessibility set

Change-Id: Ie36240229ca15a252d5f34051bfe8ac77a101da9
2011-03-02 14:02:23 -08:00
Svetoslav Ganov
c04e3480aa 3328848 Script injection property is enabled when accessibility is disabled
Change-Id: I23da008eea88f3e96a7de4823a6f6ff9d8e21ee0
2011-01-06 16:01:46 -08:00
Svetoslav Ganov
749ba65227 3244931 ANR while in settings attempting to enable Accessibility->Talkabout (IKXEVEREST-1847)
Change-Id: Ifea9324671d0e80a417f4b2fe6dbbe981f8b0679
2010-12-10 17:25:56 -08:00
Svetoslav Ganov
cdd8e34b4f 3053971 Accessibility settings are not using Fragment APIs for dialogs. + 3053903 Pressing back while showing disable accessibility warning disables accessibility with no explicit user consent.
Change-Id: Iac7e7a96d8d9f37d1b39c29237b3e2c93381b39b
2010-09-30 20:19:07 -07:00
Svetoslav Ganov
3d64653d1f WebView accessibility support - Adding opt-in setting for enabling accessibility script injection from Google
Change-Id: I1676f34c30a0e9414d51060ad4fb2c9c502b09c3
2010-09-16 12:45:19 -07:00
Daisuke Miyakawa
c481a7aa16 Refrain flickering in AccessibilitySettings.
Bug: 3006118
Change-Id: I40249340242323e23bbd3008a8fb50589e939096
2010-09-16 09:49:20 -07:00
Amith Yamasani
60133dd036 Conditionally remove settings that aren't required on the tablet.
Bug: 2985267

Changes not done : SD card related stuff, as we need some way still
to figure out if there is a real SD card in the device.

Change-Id: I21c41f18ebe6c050981918481a7f6d69f04b65d0
2010-09-11 14:58:01 -07:00
Amith Yamasani
d79934731c Refactor settings top level activities to use fragments.
Added a base class SettingsPreferenceFragment from which the settings activities should
be derived so that they can behave like fragments. It contains some commonly called
utility methods and dialog conversion to DialogFragment.

Some of the top-level activities can be launched directly without the left pane.
Settings.java acts as a proxy activity that contains just that settings fragment without
the left pane.

There are still a lot of second and third level activities that need to be fragmentized.
This is just the first pass to test the 2-pane layout.
2010-08-18 22:59:33 -07:00
David Brown
6e101d125a Add "Power button ends call" accessibility setting.
This is part 3 of the fix for bug 2364220 "Accessibility improvements for
ending calls".

This change adds a checkbox under "Accessibility settings" to control the
new Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR value, which allows the
user to specify that the Power button should hang up while in-call
(instead of just turning off the screen.)  The checkbox is only shown on
devices that actually have a POWER button.

Yeah, it's a little strange having this under Accessibility (since it's not
that obvious *why* this feature is accessibility-related), but there's no
obvious better place.  See discussion in the bug for more info.

Bug: 2364220

Change-Id: I0fd7cf357972519b390575b9c06a4bbe46ff1c9b
2010-03-11 17:39:11 -08:00
Svetoslav Ganov
f7adf2bd07 Fixing bug 2486048 - Disabling Accessibility does not disable Accessibility services check boxes
Change-Id: Ie5d78c1ddb61241db8259a200a3df1950d767cce
2010-03-09 20:32:20 -08:00
Svetoslav Ganov
80d6c74bb9 Fixing bug 2455152 - Enabled accessibility services are disabled upon restarting accessibility 2010-02-18 17:20:10 -08:00
Charles Chen
05b08a50f8 Adding a prompt to help users download Talkback
(Google's open source screen reader) if they go
to the Accessibility settings screen and do not
have any accessibility tools installed.

This is a fix for bug #2250279
2009-11-16 15:28:31 -08:00
Charles Chen
d218df2787 Fixing bug 2064923.
This is a fix to make sure that the accessibility manager does not start
any of the accessibility services when it is disabled.
2009-08-21 15:14:25 -07:00
Charles Chen
52b221d94b Removing the summary texts for the Accessibility checkbox
as requested by Raman.
2009-06-11 15:54:36 -07:00
svetoslavganov
a05d0dc67e Accessibility feature - settings (replacing 704 and merging with the latest Donut) 2009-05-14 22:26:34 -07:00