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

Commit bf6f081c authored by Justin Koh's avatar Justin Koh Committed by Android Git Automerger
Browse files

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

* commit '37185d90':
  DO NOT MERGE Hide the volume panel for watches for now
parents d1ba4c13 37185d90
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) {