Skip to content

Commit b0cc052

Browse files
Vinay VermaSteve Kondik
authored andcommitted
Modify SILENT profile to restrict notification sound
Return correct value for silent mode profile to restrict notification sound. CRs-Fixed: 871527 Change-Id: I94dfbc219179ea1586946331258ea8eb9d8a2beb
1 parent bbc9816 commit b0cc052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/core/java/com/android/server/notification/ZenModeHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ public int onSetRingerModeExternal(int ringerModeOld, int ringerModeNew, String
418418
{
419419
newZen = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
420420
}
421-
ringerModeInternalOut = isVibrate ? AudioManager.RINGER_MODE_VIBRATE
422-
: AudioManager.RINGER_MODE_NORMAL;
421+
ringerModeInternalOut = !isVibrate ? AudioManager.RINGER_MODE_VIBRATE
422+
: AudioManager.RINGER_MODE_SILENT;
423423
} else {
424424
ringerModeInternalOut = ringerModeInternal;
425425
}

0 commit comments

Comments
 (0)