diff options
author | Zhen Sun <zhensun@google.com> | 2017-08-15 17:31:05 -0700 |
---|---|---|
committer | Zhen Sun <zhensun@google.com> | 2017-08-29 17:34:54 -0700 |
commit | e554703a0b101c504e1abfb67af7d88cc004d674 (patch) | |
tree | 1def6188cba26b31aae1452daf163a5511ec9840 | |
parent | 551d1bb289727c41b3c14d47add4a7b5d7f93768 (diff) | |
download | device_google_atv-e554703a0b101c504e1abfb67af7d88cc004d674.tar.gz device_google_atv-e554703a0b101c504e1abfb67af7d88cc004d674.tar.bz2 device_google_atv-e554703a0b101c504e1abfb67af7d88cc004d674.zip |
ATV a11y shortcut (CL 2 of 3): Overlay config and string
Specified accessibility service that should handle accessibility
shortcut for AndroidTV devices in overlay config file.
Added overlay string that shows up on a11y shortcut dialog as warning
message.
Bug: 64346294
Test: Manually
Change-Id: Ia1396fb220ebfc1253dc3cb3000b9a2827637b61
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 3 | ||||
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/strings.xml | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 1b3ff56..956f4bb 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -58,4 +58,7 @@ <!-- Package of the unbundled tv remote service which can connect to tv remote provider --> <string translatable="false" name="config_tvRemoteServicePackage">com.google.android.tv.remote.service</string> + <!-- Default service to enable with accessibility shortcut [DO NOT TRANSLATE] --> + <string name="config_defaultAccessibilityService" translatable="false">com.google.android.marvin.talkback/.TalkBackService</string> + </resources> diff --git a/overlay/frameworks/base/core/res/res/values/strings.xml b/overlay/frameworks/base/core/res/res/values/strings.xml new file mode 100644 index 0000000..be12e07 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/strings.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2017 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- Message shown in dialog when user is in the process of enabling the accessibility + service on Android TV devices via the remote control buttons shortcut for the first time. + [CHAR LIMIT=none] --> + <string name="accessibility_shortcut_toogle_warning"> + When the shortcut is on, pressing both the back and down buttons for 3 seconds will start + an accessibility feature.\n\n + Current accessibility feature:\n + <xliff:g id="service_name" example="TalkBack">%1$s</xliff:g>\n\n + You can change the feature in Settings > Accessibility. + </string> + +</resources> |