Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24b217f3 authored by Stanley Tng's avatar Stanley Tng Committed by android-build-merger
Browse files

Merge "Display Hearing Aids name on UI tile"

am: 4627ad60

Change-Id: Ica866192e52fad83ba7390c58ac76fa5bcebe22a
parents 4879460f 4627ad60
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -693,6 +693,8 @@
    <string name="quick_settings_bluetooth_secondary_label_headset">Headset</string>
    <!-- QuickSettings: Bluetooth secondary label for an input/IO device being connected [CHAR LIMIT=20]-->
    <string name="quick_settings_bluetooth_secondary_label_input">Input</string>
    <!-- QuickSettings: Bluetooth secondary label for a Hearing Aids device being connected [CHAR LIMIT=20]-->
    <string name="quick_settings_bluetooth_secondary_label_hearing_aids">Hearing Aids</string>
    <!-- QuickSettings: Bluetooth secondary label shown when bluetooth is being enabled [CHAR LIMIT=NONE] -->
    <string name="quick_settings_bluetooth_secondary_label_transient">Turning on&#8230;</string>
    <!-- QuickSettings: Brightness [CHAR LIMIT=NONE] -->
+4 −1
Original line number Diff line number Diff line
@@ -207,7 +207,10 @@ public class BluetoothTile extends QSTileImpl<BooleanState> {
            } else {
                final BluetoothClass bluetoothClass = lastDevice.getBtClass();
                if (bluetoothClass != null) {
                    if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) {
                    if (lastDevice.isHearingAidDevice()) {
                        return mContext.getString(
                                R.string.quick_settings_bluetooth_secondary_label_hearing_aids);
                    } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) {
                        return mContext.getString(
                                R.string.quick_settings_bluetooth_secondary_label_audio);
                    } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) {