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

Commit b0195780 authored by hughchen's avatar hughchen Committed by android-build-merger
Browse files

Merge "Add "Disconnected" subtitle on disconnected device" into qt-dev

am: 35ed6c34

Change-Id: If000fa69bb2c4ca473a21397d833d17667e8d854
parents 062c3e50 35ed6c34
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.graphics.drawable.Drawable;
import android.util.Log;
import android.util.Pair;

import com.android.settingslib.R;
import com.android.settingslib.bluetooth.BluetoothUtils;
import com.android.settingslib.bluetooth.CachedBluetoothDevice;

@@ -47,7 +48,9 @@ public class BluetoothMediaDevice extends MediaDevice {

    @Override
    public String getSummary() {
        return mCachedDevice.getConnectionSummary();
        return isConnected() || mCachedDevice.isBusy()
                ? mCachedDevice.getConnectionSummary()
                : mContext.getString(R.string.bluetooth_disconnected);
    }

    @Override