Remove Ringtone.setWakeMode, it's not needed.
This partially reverts commit e47e8520fa.
(the other part of that change was already removed as part of a different
change)
Change-Id: Ica7c196ab1f74f96237e64d07580832f0d50022f
This commit is contained in:
@@ -207,21 +207,6 @@ public class Ringtone {
|
||||
openMediaPlayer();
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public void setWakeMode(Context context, int mode) {
|
||||
if (mAudio == null) {
|
||||
try {
|
||||
openMediaPlayer();
|
||||
} catch (Exception ex) {
|
||||
Log.e(TAG, "setWakeMode() caught ", ex);
|
||||
mAudio = null;
|
||||
}
|
||||
}
|
||||
if (mAudio != null) {
|
||||
mAudio.setWakeMode(context, mode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Plays the ringtone.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user