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

Commit f931e6b2 authored by Jacqueline Bronger's avatar Jacqueline Bronger Committed by Android (Google) Code Review
Browse files

Merge "Add MediaDevice getter for route type" into main

parents 27e05672 dff8afc7
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -389,6 +389,16 @@ public abstract class MediaDevice implements Comparable<MediaDevice> {
        return mType;
        return mType;
    }
    }


    /**
     * Get the {@link MediaRoute2Info.Type} of the device.
     */
    public int getRouteType() {
        if (mRouteInfo == null) {
            return TYPE_UNKNOWN;
        }
        return mRouteInfo.getType();
    }

    /**
    /**
     * Checks if route's volume is fixed, if true, we should disable volume control for the device.
     * Checks if route's volume is fixed, if true, we should disable volume control for the device.
     *
     *