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

Commit a4fd9375 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Allow multiple releases to be called on MediaActionSound.

Bug: 6136088
Change-Id: I80ff09a90cd65d874ae016d450c4cc8c6a56d387
parent cd40f4a0
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -185,10 +185,14 @@ public class MediaActionSound {
    };

    /**
     * Free up all audio resources used by this MediaActionSound instance
     * Free up all audio resources used by this MediaActionSound instance. Do
     * not call any other methods on a MediaActionSound instance after calling
     * release().
     */
    public void release() {
        if (mSoundPool != null) {
            mSoundPool.release();
            mSoundPool = null;
        }
    }
}