From 956168070e6eb5d29b41f4e4e7424e166a16cae6 Mon Sep 17 00:00:00 2001 From: Angela Wang Date: Tue, 27 Feb 2024 06:30:18 +0000 Subject: [PATCH] Updates messages for hearing devices related page 1. Removes the footer in hearing devices page 2. Moves the footer message to top intro of hearing devices pairing page Bug: 321840161 Test: build pass, only simple UI change Change-Id: I0554f0e6d12f78c1df3efba23792e9c0dc3f061f --- res/values/strings.xml | 6 ++-- res/xml/accessibility_hearing_aids.xml | 7 ---- res/xml/hearing_device_pairing_detail.xml | 8 ----- res/xml/hearing_device_pairing_fragment.xml | 11 +++--- ...aringDeviceFooterPreferenceController.java | 35 ------------------- 5 files changed, 6 insertions(+), 61 deletions(-) delete mode 100644 src/com/android/settings/accessibility/PairHearingDeviceFooterPreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 73a3b557ede..46a7769a867 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5143,8 +5143,6 @@ %1$s +1 more Pair new device - - About Pair new device Hearing devices @@ -5159,10 +5157,10 @@ Improves compatibility with telecoils and reduces unwanted noise About hearing devices - - Make sure your hearing device is turned on and ready to pair. Only ASHA and LE Audio hearing devices show on this page. Pair hearing device + + You can pair ASHA and LE Audio hearing devices on this page. Make sure your hearing device is turned on and ready to pair. Available hearing devices diff --git a/res/xml/accessibility_hearing_aids.xml b/res/xml/accessibility_hearing_aids.xml index 57a0fe27819..27a421273cc 100644 --- a/res/xml/accessibility_hearing_aids.xml +++ b/res/xml/accessibility_hearing_aids.xml @@ -60,11 +60,4 @@ settings:searchable="true" settings:controller="com.android.settings.accessibility.HearingAidCompatibilityPreferenceController"/> - - \ No newline at end of file diff --git a/res/xml/hearing_device_pairing_detail.xml b/res/xml/hearing_device_pairing_detail.xml index 0ccd000a4a3..0526eb3153a 100644 --- a/res/xml/hearing_device_pairing_detail.xml +++ b/res/xml/hearing_device_pairing_detail.xml @@ -32,12 +32,4 @@ settings:useAdminDisabledSummary="true" settings:controller="com.android.settings.accessibility.ViewAllBluetoothDevicesPreferenceController"/> - - - \ No newline at end of file diff --git a/res/xml/hearing_device_pairing_fragment.xml b/res/xml/hearing_device_pairing_fragment.xml index 1ccc1dd77c4..ce7f39f8df5 100644 --- a/res/xml/hearing_device_pairing_fragment.xml +++ b/res/xml/hearing_device_pairing_fragment.xml @@ -19,6 +19,10 @@ xmlns:settings="http://schemas.android.com/apk/res-auto" android:title="@string/bluetooth_pairing_pref_title"> + + @@ -35,11 +39,4 @@ settings:controller="com.android.settings.accessibility.ViewAllBluetoothDevicesPreferenceController"/> - - \ No newline at end of file diff --git a/src/com/android/settings/accessibility/PairHearingDeviceFooterPreferenceController.java b/src/com/android/settings/accessibility/PairHearingDeviceFooterPreferenceController.java deleted file mode 100644 index 09396ffd50d..00000000000 --- a/src/com/android/settings/accessibility/PairHearingDeviceFooterPreferenceController.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2023 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. - */ - -package com.android.settings.accessibility; - -import android.content.Context; - -import com.android.settings.R; - -/** Preference controller for footer in pair hearing device page. */ -public class PairHearingDeviceFooterPreferenceController extends - AccessibilityFooterPreferenceController { - public PairHearingDeviceFooterPreferenceController(Context context, - String key) { - super(context, key); - } - - @Override - protected String getIntroductionTitle() { - return mContext.getString(R.string.accessibility_pair_hearing_device_about_title); - } -}