Use SystemClock.currentThreadTimeMillis to calculate gif delay
This commit is contained in:
1 parent
4b8e46d220
commit
adbb1f11a5
1 file changed
+1
-1
@@ -309,7 +309,7 @@ public class ImageTexture implements Texture, Animatable {
|
||||
|
||||
mImage.advance();
|
||||
long delay = mImage.getDelay();
|
||||
long time = System.currentTimeMillis();
|
||||
long time = SystemClock.currentThreadTimeMillis();
|
||||
delay -= time - lastTime;
|
||||
lastTime = time;
|
||||
mFrameDirty.lazySet(true);
|
||||
|
||||
Reference in new issue
Block a user