diff options
author | Daniel Sandler <dsandler@android.com> | 2010-04-21 15:24:24 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2010-04-21 15:29:34 -0400 |
commit | 2c917847f520c59af84837d4514855ea01f0316c (patch) | |
tree | a6aa84a40dcbca16a89974a305f5da660399d62d /res/values | |
parent | 8ad849ca26f472d1243130392186c435b98454ef (diff) | |
download | packages_apps_Settings-2c917847f520c59af84837d4514855ea01f0316c.zip packages_apps_Settings-2c917847f520c59af84837d4514855ea01f0316c.tar.gz packages_apps_Settings-2c917847f520c59af84837d4514855ea01f0316c.tar.bz2 |
Redesign vibration settings.
Under the hood there remain three axes:
1. Are we in silent mode now? | RINGER_MODE_{VIBRATE,SILENT}
2. Do we vibrate in silent mode? | VIBRATE_IN_SILENT == 1
3. Do calls vibrate: | getVibrateSetting(VIBRATE_TYPE_RINGER)
- always | == VIBRATE_SETTING_ON
- never | == VIBRATE_SETTING_OFF
- only in silent | == VIBRATE_SETTING_ONLY_SILENT
We now expose this to the user much more simply by
collapsing (2) and (3) above, and discarding states that
don't make sense:
- VIBRATE_SETTING_OFF + VIBRATE_IN_SILENT
- VIBRATE_SETTING_ONLY_SILENT + !VIBRATE_IN_SILENT
Now we offer the user four choices:
Phone vibrate:
* "Never"
--> VIBRATE_IN_SILENT=0, VIBRATE_SETTING_OFF
* "Always"
--> VIBRATE_IN_SILENT=1, VIBRATE_SETTING_ON
* "Only in silent mode"
--> VIBRATE_IN_SILENT=1, VIBRATE_SETTING_ONLY_SILENT
* "Only when not in silent mode"
--> VIBRATE_IN_SILENT=0, VIBRATE_SETTING_ON
This should make it easier to choose exactly the behavior
the user wants as well as avoid nonsensical combinations of
settings.
Bug: 2598014
Change-Id: I9244d25ec97a3e2b572b71b521049debd22fa4e0
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/arrays.xml | 12 | ||||
-rw-r--r-- | res/values/strings.xml | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 0ae8eb4..f16f8c9 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -388,14 +388,16 @@ <!-- New incoming call vibrate options. --> <string-array name="vibrate_entries"> <item>Always</item> - <item>Only when silent</item> <item>Never</item> + <item>Only in Silent mode</item> + <item>Only when not in Silent mode</item> </string-array> - <!-- Corresponds to AudioManager.VIBRATE_SETTING_*. Do not translate. --> + <!-- Values for vibrate_entries matching constants in SoundSettings. Do not translate. --> <string-array name="vibrate_values" translatable="false"> - <item>1</item> - <item>2</item> - <item>0</item> + <item>always</item> + <item>never</item> + <item>silent</item> + <item>notsilent</item> </string-array> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 66435d7..a0d3b41 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1019,9 +1019,9 @@ <!-- Sound settings screen, setting option summary text --> <string name="vibrate_in_silent_summary">Allow vibration feedback in silent mode</string> <!-- Sound settings screen, setting option name checkbox --> - <string name="vibrate_title">Phone vibrate</string> + <string name="vibrate_title">Vibrate</string> <!-- Sound settings screen, setting option summary text --> - <string name="vibrate_summary">Vibrate phone for incoming calls</string> + <string name="vibrate_summary">Vibration feedback for calls and notifications</string> <!-- Sound settings screen, setting option name --> <string name="notification_sound_title">Notification ringtone</string> <!-- Sound settings screen, setting option summary text --> |