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

Commit 822a1208 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

DO NOT MERGE Revert "Merge "Revert "Re-add getAliasName to fix build breakage"" am: 944fed6b"

This reverts commit 07c12804, reversing
changes made to d26ea880.

Bug: 144619932
Test: Manual
Change-Id: Ie9a46c9527004759a250dc71d2a1065ff3bb7328
parent c47567db
Loading
Loading
Loading
Loading
+18 −0
Original line number Original line Diff line number Diff line
@@ -1094,6 +1094,24 @@ public final class BluetoothDevice implements Parcelable {
        return false;
        return false;
    }
    }


    /**
     * Get the Bluetooth alias of the remote device.
     * If Alias is null, get the Bluetooth name instead.
     *
     * @return the Bluetooth alias, or null if no alias or there was a problem
     * @hide
     * @see #getAlias()
     * @see #getName()
     */
    @UnsupportedAppUsage(publicAlternatives = "Use {@link #getName()} instead.")
    public String getAliasName() {
        String name = getAlias();
        if (name == null) {
            name = getName();
        }
        return name;
    }

    /**
    /**
     * Get the most recent identified battery level of this Bluetooth device
     * Get the most recent identified battery level of this Bluetooth device
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH}