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

Commit 84bdc4c1 authored by DvTonder's avatar DvTonder
Browse files

Framework: Fix multi-user support in AudioService

Change-Id: Iddeeeac0734a237103e238bcdaa1e85806a64e4f
parent 0c80e38c
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -748,11 +748,8 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
            readDockAudioSettings(cr);
        }

        //******************************************************************
        //TODO: should this be a user specific setting or device (see below)
        mLinkNotificationWithVolume = Settings.System.getInt(cr,
                Settings.System.VOLUME_LINK_NOTIFICATION, 1) == 1;
        //******************************************************************
        mLinkNotificationWithVolume = Settings.System.getIntForUser(cr,
                Settings.System.VOLUME_LINK_NOTIFICATION, 1, UserHandle.USER_CURRENT) == 1;

        mMuteAffectedStreams = System.getIntForUser(cr,
                System.MUTE_STREAMS_AFFECTED,
@@ -3520,8 +3517,8 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
                }
                readDockAudioSettings(mContentResolver);

                mLinkNotificationWithVolume = Settings.System.getInt(mContentResolver,
                        Settings.System.VOLUME_LINK_NOTIFICATION, 1) == 1;
                mLinkNotificationWithVolume = Settings.System.getIntForUser(mContentResolver,
                        Settings.System.VOLUME_LINK_NOTIFICATION, 1, UserHandle.USER_CURRENT) == 1;
                if (mLinkNotificationWithVolume) {
                    mStreamVolumeAlias[AudioSystem.STREAM_NOTIFICATION] = AudioSystem.STREAM_RING;
                } else {