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

Commit 7aaedc2c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Update song position correctly"

parents 25be2738 e94e90f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public class PlayStatus {
    static final byte REV_SEEK = 4;
    static final byte ERROR = -1;

    public long position = 0xFFFFFFFFFFFFFFFFL;
    public long position = 0;
    public long duration = 0x00L;
    public byte state = STOPPED;

@@ -41,7 +41,7 @@ public class PlayStatus {
        if (state == null) return ret;

        ret.state = playbackStateToAvrcpState(state.getState());
        ret.position = state.getPosition();
        ret.position = (state.getPosition() > 0) ? state.getPosition() : 0;
        ret.duration = duration;
        return ret;
    }