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

Commit 9c1d2de1 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Make mInitializationLooper final"

parents 4e71faec b09707a0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ public class AudioTrack
    /**
     * Looper associated with the thread that creates the AudioTrack instance.
     */
    private Looper mInitializationLooper = null;
    private final Looper mInitializationLooper;
    /**
     * The audio data sampling rate in Hz.
     */
@@ -313,9 +313,11 @@ public class AudioTrack
        mState = STATE_UNINITIALIZED;

        // remember which looper is associated with the AudioTrack instantiation
        if ((mInitializationLooper = Looper.myLooper()) == null) {
            mInitializationLooper = Looper.getMainLooper();
        Looper looper;
        if ((looper = Looper.myLooper()) == null) {
            looper = Looper.getMainLooper();
        }
        mInitializationLooper = looper;

        audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode);