On the Network & internet page, we have a "Mobile network" pref that in single-SIM mode leads to a detail page for the current SIM. In multi-SIM mode it has more complicated behavior (leading either to details about the current subscription if there is only one, or a list of subscriptions if more than one). One of the things we wanted to add was a shortcut to add another eSIM subscription. So this CL adds a plus button control on the right of the preference which leads to a flow to add another mobile subscription via the eSIM manager. Bug: 116349402 Test: make RunSettingsRoboTests Change-Id: I38e0031e3bd603e93c45dcb4557750e7bc1b8b5a
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2019 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.
|
|
-->
|
|
|
|
<ImageView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/add_preference_widget"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingEnd"
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_add_24dp"
|
|
android:contentDescription="@string/add" />
|
|
|