OSDN Git Service

Fallback to fallbackring if ringtone can't be played.
authorOscar Rydhé <oscar.rydhe@sonymobile.com>
Wed, 30 May 2012 11:38:38 +0000 (13:38 +0200)
committerHenrik Baard <henrik.baard@sonymobile.com>
Fri, 16 Nov 2012 13:22:14 +0000 (14:22 +0100)
commit1c25a21ffcfbc78a0edced4076d533f34902428a
tree26f965291e5bec42540c5730981f3cabbeecf414
parente4163e96e0ee31c6e78434114cc1dcf4cd3ab5bd
Fallback to fallbackring if ringtone can't be played.

If the specified ringtone file exists but cannot be played
the Ringtone will try to play the ringtone in a remote player.
But since the file is corrupt it will not be played in the
remote player either.
According to the documentation it should attempt to
fallback on another sound. This commit will do that.

Change-Id: I0216d61ca874eef0f168ad4d5bfb07491e01e654
media/java/android/media/Ringtone.java