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

Commit 929ae14a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 938fb08a 51cf7765
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) {