Fix some network timeline bugs (#2373)
* Fix network timeline gap loading * Fix fullReload keeps nextKey * Fix reload after clearing timeline * Improve logic to handle overlapped statuses
This commit is contained in:
parent
55513e8e2b
commit
72bb34bf27
3 changed files with 71 additions and 16 deletions
|
|
@ -78,6 +78,19 @@ fun String.isLessThan(other: String): Boolean {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A <= B (strictly) by length and then by content.
|
||||
* Examples:
|
||||
* "abc" <= "bcd"
|
||||
* "ab" <= "abc"
|
||||
* "cb" <= "abc"
|
||||
* "ab" <= "ab"
|
||||
* not: "abc" > "cb"
|
||||
*/
|
||||
fun String.isLessThanOrEqual(other: String): Boolean {
|
||||
return this == other || isLessThan(other)
|
||||
}
|
||||
|
||||
fun Spanned.trimTrailingWhitespace(): Spanned {
|
||||
var i = length
|
||||
do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue