Extra for ACTION_RINGTONE_PICKER for AudioAttributes flags

Add EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS to allow specifying
  AudioAttributes flags that will be used when playing the
  Ringtone.

Bug 19407114

Change-Id: I56a77d7308b21afc0766356e1b6a2d76dca21221
This commit is contained in:
Jean-Michel Trivi
2015-05-20 19:14:45 -07:00
parent d3969546a8
commit 42697ffd42

View File

@@ -158,7 +158,16 @@ public class RingtoneManager {
* in most cases.
*/
public static final String EXTRA_RINGTONE_TITLE = "android.intent.extra.ringtone.TITLE";
/**
* @hide
* Given to the ringtone picker as an int. Additional AudioAttributes flags to use
* when playing the ringtone in the picker.
* @see #ACTION_RINGTONE_PICKER
*/
public static final String EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS =
"android.intent.extra.ringtone.AUDIO_ATTRIBUTES_FLAGS";
/**
* Returned from the ringtone picker as a {@link Uri}.
* <p>
@@ -221,7 +230,7 @@ public class RingtoneManager {
private boolean mStopPreviousRingtone = true;
private Ringtone mPreviousRingtone;
/**
* Constructs a RingtoneManager. This constructor is recommended as its
* constructed instance manages cursor(s).
@@ -283,7 +292,7 @@ public class RingtoneManager {
return AudioManager.STREAM_RING;
}
}
/**
* Whether retrieving another {@link Ringtone} will stop playing the
* previously retrieved {@link Ringtone}.