Skip to content
Snippets Groups Projects
Commit b16ff968 authored by Dhina17's avatar Dhina17
Browse files

VolumeDialog: Fix per-app volume on secondary users

Change-Id: I3ee1767d8482948f4c5d885b4eb8f0c259cfa4b3
parent 424d5c2f
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,7 @@ import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import android.os.Trace;
import android.os.UserHandle;
import android.os.VibrationEffect;
import android.provider.Settings;
import android.provider.Settings.Global;
......@@ -1533,8 +1534,9 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
private void initAppVolumes() {
clearAppVolumes();
boolean showAppVolume = Settings.System.getInt(mContext.getContentResolver(),
LMOSettings.System.SHOW_APP_VOLUME, 0) == 1;
boolean showAppVolume = Settings.System.getIntForUser(mContext.getContentResolver(),
LMOSettings.System.SHOW_APP_VOLUME,
0, UserHandle.USER_CURRENT) == 1;
if (!showAppVolume || mAppVolumeView == null) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment