Only shows music stream when using master stream.

Bug: 29446492
Change-Id: I52b686daa21499d0b054f762251c544c263fdec4
(cherry picked from commit ec88e104befb872c0bde99871eec73bf5d705369)
This commit is contained in:
Muyuan Li
2016-06-21 11:13:03 -07:00
parent f71366d8ef
commit 5a48c8493f

View File

@@ -30,6 +30,7 @@ import android.database.ContentObserver;
import android.database.Cursor;
import android.database.sqlite.SQLiteException;
import android.media.AudioManager;
import android.media.AudioSystem;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.AsyncTask;
@@ -158,6 +159,12 @@ public class SoundSettings extends SettingsPreferenceFragment implements Indexab
removePreference(KEY_RING_VOLUME);
}
if (AudioSystem.isSingleVolume(mContext)) {
removePreference(KEY_RING_VOLUME);
removePreference(KEY_NOTIFICATION_VOLUME);
removePreference(KEY_ALARM_VOLUME);
}
// Enable link to CMAS app settings depending on the value in config.xml.
boolean isCellBroadcastAppLinkEnabled = this.getResources().getBoolean(
com.android.internal.R.bool.config_cellBroadcastAppLinks);