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

Commit d45d3fcd authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Remove unnecessary if in MediaSessionService#dispatchAdjustVolumeLocked

No-op change.

Bug: 205124386
Change-Id: I524901315a69ed975864b0406bfa18e3d5322922
Test: presubmit
parent 87a1f6a8
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2188,11 +2188,10 @@ public class MediaSessionService extends SystemService implements Monitor {
            MediaSessionRecordImpl session = isGlobalPriorityActiveLocked() ? mGlobalPrioritySession
                    : mCurrentFullUserRecord.mPriorityStack.getDefaultVolumeSession();

            boolean preferSuggestedStream = false;
            if (isValidLocalStreamType(suggestedStream)
                    && AudioSystem.isStreamActive(suggestedStream, 0)) {
                preferSuggestedStream = true;
            }
            boolean preferSuggestedStream =
                    isValidLocalStreamType(suggestedStream)
                            && AudioSystem.isStreamActive(suggestedStream, 0);

            if (session == null || preferSuggestedStream) {
                if (DEBUG_KEY_EVENT) {
                    Log.d(TAG, "Adjusting suggestedStream=" + suggestedStream + " by " + direction