Closed numa08 closed 4 years ago
👀
Thank you for finding bug cause!!! Probably we can fix in SessionList like this 👍
val currentSessionIndex by lazy {
val lastFinished = indexOfLast { it.isFinished }
if (lastFinished == -1) {
// if session does not started we don't use it
-1
} else if (size - 1 == lastFinished) {
// if it is last we don't use it
-1
} else {
lastFinished + 1
}
}
Thanks ! I'll try it !!
Your apk has been deployed to https://deploygate.com/distributions/6fb863fe3df511e51c4b1cb0183bc077fde282c3. Anyone can try your changes via the link.
Generated by :no_entry_sign: Danger
No issue was reported. Cool!
Generated by :no_entry_sign: Danger
Thanks! LGTM!
Issue
Overview (Required)
SessionsList.currentSessionIndex
had returned0
in spite of the session dose not started.Screenshot
|