From e9d46427d05cace4ef2d2c699534ced48f078626 Mon Sep 17 00:00:00 2001 From: ctiao Date: Fri, 13 Nov 2015 10:48:15 +0800 Subject: [PATCH] DrawHandler: getCurrentTime always return 0 if preparing is not finish --- .../main/java/master/flame/danmaku/controller/DrawHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java index c6cb85e1..10f9be01 100644 --- a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java +++ b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java @@ -686,6 +686,9 @@ public IDanmakus getCurrentVisibleDanmakus() { } public long getCurrentTime() { + if (!mReady) { + return 0; + } if (mInSeekingAction) { return mDesireSeekingTime; }