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

Commit 95509aa1 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "OPP: Show remote device local (Alias) name."

am: 929ae14a

Change-Id: I755bd9467776704148ffd8784a28e0cd714f76ed
parents f713d019 929ae14a
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -329,12 +329,13 @@ public class BluetoothOppManager {
     * Get device name per bluetooth address.
     */
    public String getDeviceName(BluetoothDevice device) {
        String deviceName;
        String deviceName = null;

        if (device != null) {
            deviceName = device.getAliasName();
            if (deviceName == null) {
                deviceName = BluetoothOppPreference.getInstance(mContext).getName(device);

        if (deviceName == null && mAdapter != null) {
            deviceName = device.getName();
            }
        }

        if (deviceName == null) {