Previously these were provided in build-time resource overlays by overriding the entire install_carrier_app_activity.xml layout. This is no longer feasible with the move to runtime overlays as the layout cannot be precisely mimicked due to depending on styles and other parameters from the base APK (and is generally a bit more brittle). Instead, pull in the needed container from the current overlay, add a stub image and content description and hide the container by default so the base APK can be compiled, and provide a boolean that can be overridden along with the image and content description that is used to toggle the image display at runtime. Bug: 118823052 Test: atest GtsSimAppDialogTestCases (with and without overlay) Change-Id: Ic706df3091ce6c9f5d64ee22da6fa61b9b7b1e3c
38 lines
2.3 KiB
XML
38 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright (C) 2018 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">
|
|
<!-- The name of this application [CHAR LIMIT=NONE] -->
|
|
<string name="app_name">Sim App Dialog</string>
|
|
<!-- Install Carrier App Activity -->
|
|
<!-- Title of screen asking user to download the carrier app to match the inserted SIM card [CHAR LIMIT=30] -->
|
|
<string name="install_carrier_app_title">Activate mobile service</string>
|
|
<!-- Description of screen asking user to download the carrier app to match the inserted SIM card if we know the name of the carrier [CHAR LIMIT=90] -->
|
|
<string name="install_carrier_app_description">To get your new SIM working properly, you\'ll
|
|
need to install the <xliff:g name="carrier_name" example="Project Fi">%1$s</xliff:g> app
|
|
</string>
|
|
<!-- Description of screen asking user to download the carrier app to match the inserted SIM card if we don't know the name of the carrier [CHAR LIMIT=100] -->
|
|
<string name="install_carrier_app_description_default">To get your new SIM working properly,
|
|
you\'ll need to install the carrier app
|
|
</string>
|
|
<!-- Name of the button used to defer downloading the carrier app [CHAR LIMIT=25]-->
|
|
<string name="install_carrier_app_defer_action">Not now</string>
|
|
<!-- Name of the button for downloading the carrier app [CHAR LIMIT=25] -->
|
|
<string name="install_carrier_app_download_action">Download app</string>
|
|
<!-- Empty placeholder string for an illustration content description that is supplied via resource overlay. [DO NOT TRANSLATE] -->
|
|
<string name="install_carrier_app_image_content_description" translatable="false" />
|
|
</resources>
|