Only shows music stream when using master stream.
Bug: 29446492 Change-Id: I52b686daa21499d0b054f762251c544c263fdec4 (cherry picked from commit ec88e104befb872c0bde99871eec73bf5d705369)
This commit is contained in:
@@ -30,6 +30,7 @@ import android.database.ContentObserver;
|
|||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
import android.database.sqlite.SQLiteException;
|
import android.database.sqlite.SQLiteException;
|
||||||
import android.media.AudioManager;
|
import android.media.AudioManager;
|
||||||
|
import android.media.AudioSystem;
|
||||||
import android.media.RingtoneManager;
|
import android.media.RingtoneManager;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
@@ -158,6 +159,12 @@ public class SoundSettings extends SettingsPreferenceFragment implements Indexab
|
|||||||
removePreference(KEY_RING_VOLUME);
|
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.
|
// Enable link to CMAS app settings depending on the value in config.xml.
|
||||||
boolean isCellBroadcastAppLinkEnabled = this.getResources().getBoolean(
|
boolean isCellBroadcastAppLinkEnabled = this.getResources().getBoolean(
|
||||||
com.android.internal.R.bool.config_cellBroadcastAppLinks);
|
com.android.internal.R.bool.config_cellBroadcastAppLinks);
|
||||||
|
Reference in New Issue
Block a user