Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84e18ecd authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

android.media.Ringtone: add getter for AudioAttributes

Bug 17290606

Change-Id: I28406080cc1fb6a916b2859d0ef39980464953e9
parent c0dce273
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15706,6 +15706,7 @@ package android.media {
  }
  public class Ringtone {
    method public android.media.AudioAttributes getAudioAttributes();
    method public deprecated int getStreamType();
    method public java.lang.String getTitle(android.content.Context);
    method public boolean isPlaying();
+9 −0
Original line number Diff line number Diff line
@@ -114,6 +114,15 @@ public class Ringtone {
        setUri(mUri);
    }

    /**
     * Returns the {@link AudioAttributes} used by this object.
     * @return the {@link AudioAttributes} that were set with
     *     {@link #setAudioAttributes(AudioAttributes)} or the default attributes if none were set.
     */
    public AudioAttributes getAudioAttributes() {
        return mAudioAttributes;
    }

    /**
     * Returns a human-presentable title for ringtone. Looks in media
     * content provider. If not in either, uses the filename