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

Commit c2eaee53 authored by Bart Sears's avatar Bart Sears Committed by Android Git Automerger
Browse files

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

* commit 'a476eed6':
  getDuration can be only called after prepared. DO NOT MERGE
parents f817e941 a476eed6
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);