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

Commit 2d39120f authored by tim peng's avatar tim peng Committed by Android (Google) Code Review
Browse files

Merge "Add new API to get current package name" into rvc-dev

parents a4403c2d f38eafa1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -381,6 +381,15 @@ public class LocalMediaManager implements BluetoothCallback {
        return mInfoMediaManager.getActiveMediaSession();
    }

    /**
     * Gets the current package name.
     *
     * @return current package name
     */
    public String getPackageName() {
        return mPackageName;
    }

    private MediaDevice updateCurrentConnectedDevice() {
        synchronized (mMediaDevicesLock) {
            for (MediaDevice device : mMediaDevices) {