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

Commit ca127397 authored by Haijie Hong's avatar Haijie Hong
Browse files

Update connection summary for bonding loss

Bug: 380801155
Test: tested in local build, can't find a good way to test reflection
Flag: EXEMPT string update
Change-Id: Ic477d0427c1f62afaff6a47dabc0e667a471ee71
parent 3ee821a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1510,6 +1510,9 @@
    <!-- Warning message to tell user is have problem during profile connect, it need to turn off device and back on. [CHAR_LIMIT=NONE] -->
    <string name="profile_connect_timeout_subtext">Problem connecting. Turn device off &amp; back on</string>

    <!-- Warning message when the bluetooth key is missing. [CHAR_LIMIT=NONE] -->
    <string name="bluetooth_key_missing_subtext">Can’t connect</string>

    <!-- Name of the 3.5mm audio device. [CHAR LIMIT=40] -->
    <string name="media_transfer_wired_device_name">Wired audio device</string>

+5 −0
Original line number Diff line number Diff line
@@ -1495,6 +1495,11 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
        int leftBattery = -1;
        int rightBattery = -1;

        Integer keyMissingCount = BluetoothUtils.getKeyMissingCount(mDevice);
        if (keyMissingCount != null && keyMissingCount > 0) {
            return mContext.getString(R.string.bluetooth_key_missing_subtext);
        }

        if (isProfileConnectedFail() && isConnected()) {
            return mContext.getString(R.string.profile_connect_timeout_subtext);
        }