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

Commit 735c1953 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by android-build-merger
Browse files

Merge "Re-enable browsing support for AVRCP"

am: 252a336e

Change-Id: I5dac70c68161d2d774c4251cca56c5a87d59c136
parents 4c424aed 252a336e
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ import java.util.Map;
 ******************************************************************************/

public final class Avrcp {
    private static final boolean DEBUG = false;
    private static final boolean DEBUG = true;
    private static final String TAG = "Avrcp";
    private static final String ABSOLUTE_VOLUME_BLACKLIST = "absolute_volume_blacklist";

@@ -1917,20 +1917,18 @@ public final class Avrcp {
     * @return true if it supports browsing, else false.
     */
    private synchronized boolean isBrowseSupported(String packageName) {
        boolean response = false;

        /* check if Browsable Player's list contains this package name */
        for (BrowsePlayerInfo info : mBrowsePlayerInfoList) {
            if (info.packageName.equals(packageName)) {
                // TODO: (apanicke) Currently browsing isn't implemented
                // properly and causes metadata to break. Fix browsing
                // interface and change this to true.
                response = false;
                if (DEBUG) Log.v(TAG, "isBrowseSupported for " + packageName +
                                      ": true");
                return true;
            }
        }

        if (DEBUG) Log.v(TAG, "isBrowseSupported for " + packageName + ": " + response);
        return response;
        if (DEBUG) Log.v(TAG, "isBrowseSupported for " + packageName +
                              ": false");
        return false;
    }

    /* from the global object, getting the current addressed player's package name */