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

Commit a476eed6 authored by Bart Sears's avatar Bart Sears Committed by Android (Google) Code Review
Browse files

Merge "getDuration can be only called after prepared. DO NOT MERGE" into ics-mr1

parents 2f143a96 149537cb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -311,7 +311,11 @@ class HTML5Audio extends Handler
    }

    private float getMaxTimeSeekable() {
        if (mState >= PREPARED) {
            return mMediaPlayer.getDuration() / 1000.0f;
        } else {
            return 0;
        }
    }

    private native void nativeOnBuffering(int percent, int nativePointer);