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

Commit e43b7ab7 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Disable log spam in AVRCP

Bug: 74572514
Change-Id: If9f5cc8b4f6cb57bf9590e6aca7d80c86fbd4388
(cherry picked from commit 8abeaf18fbdd24c9a44956fc305ed9c213ad0520)
parent a7b0946d
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);