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

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

Merge "Disable log spam in AVRCP"

parents ca32c387 f0d9a9d6
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ import java.util.TreeMap;
 ******************************************************************************/

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

@@ -1033,9 +1033,11 @@ public final class Avrcp {
            if (newState != null) {
                newQueueId = newState.getActiveQueueItemId();
            }
            if (DEBUG) {
                Log.v(TAG,
                        "Media update: id " + mLastQueueId + "➡" + newQueueId + "? " + currentAttributes
                                .toRedactedString() + " : " + mMediaAttributes.toRedactedString());
            }

            if (mAvailablePlayerViewChanged) {
                registerNotificationRspAvalPlayerChangedNative(
@@ -1064,7 +1066,9 @@ public final class Avrcp {
            // Dont send now playing list changed if the player doesn't support browsing
            MediaPlayerInfo info = getAddressedPlayerInfo();
            if (info != null && info.isBrowseSupported()) {
                if (DEBUG) {
                    Log.v(TAG, "Check if NowPlayingList is updated");
                }
                mAddressedMediaPlayer.updateNowPlayingList(mMediaController);
            }

@@ -1086,8 +1090,10 @@ public final class Avrcp {
        }

        // still send the updated play state if the playback state is none or buffering
        Log.e(TAG, "play status change " + mReportedPlayStatus + "➡" + newPlayStatus
        if (DEBUG) {
            Log.v(TAG, "play status change " + mReportedPlayStatus + "➡" + newPlayStatus
                    + " mPlayStatusChangedNT: " + mPlayStatusChangedNT);
        }
        if (mPlayStatusChangedNT == AvrcpConstants.NOTIFICATION_TYPE_INTERIM || (mReportedPlayStatus
                != newPlayStatus)) {
            sendPlaybackStatus(AvrcpConstants.NOTIFICATION_TYPE_CHANGED, newPlayStatus);