use get/setRingerModeInternal for DND mode
diff --git a/app/src/main/java/org/exthmui/game/services/GamingService.java b/app/src/main/java/org/exthmui/game/services/GamingService.java
index 6265df0..f4d663a 100644
--- a/app/src/main/java/org/exthmui/game/services/GamingService.java
+++ b/app/src/main/java/org/exthmui/game/services/GamingService.java
@@ -247,10 +247,10 @@
private void setDisableRingtone(boolean disable) {
if (!mCurrentConfig.containsKey("old_ringer_mode")) {
- mCurrentConfig.putInt("old_ringer_mode", mAudioManager.getRingerMode());
+ mCurrentConfig.putInt("old_ringer_mode", mAudioManager.getRingerModeInternal());
}
int oldRingerMode = mCurrentConfig.getInt("old_ringer_mode", AudioManager.RINGER_MODE_NORMAL);
- mAudioManager.setRingerMode(disable ? AudioManager.RINGER_MODE_VIBRATE : oldRingerMode);
+ mAudioManager.setRingerModeInternal(disable ? AudioManager.RINGER_MODE_SILENT : oldRingerMode);
mCurrentConfig.putBoolean(Constants.ConfigKeys.DISABLE_RINGTONE, disable);
}