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

Commit ae8945ab authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android (Google) Code Review
Browse files

Merge "Allow multiple releases to be called on MediaActionSound."

parents c8462e32 a4fd9375
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;
        }
    }
}