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

Commit 37185d90 authored by Justin Koh's avatar Justin Koh Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE Hide the volume panel for watches for now" into klp-modular-dev

parents ae3bd63b 0beee086
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1165,6 +1165,12 @@ public class AudioService extends IAudioService.Stub {
            streamType = AudioSystem.STREAM_NOTIFICATION;
        }

        // Don't show the volume panel for watches yet.
        if ((mContext.getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_WATCH)
                == Configuration.UI_MODE_TYPE_WATCH) {
            flags &= ~AudioManager.FLAG_SHOW_UI;
        }

        mVolumePanel.postVolumeChanged(streamType, flags);

        if ((flags & AudioManager.FLAG_FIXED_VOLUME) == 0) {