mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
StreakList: Return copy of list, instead of a view to original list
This commit is contained in:
@@ -30,7 +30,7 @@ class StreakList {
|
||||
list.sortWith { s1: Streak, s2: Streak -> s2.compareLonger(s1) }
|
||||
return list.subList(0, min(list.size, limit)).apply {
|
||||
sortWith { s1: Streak, s2: Streak -> s2.compareNewer(s1) }
|
||||
}
|
||||
}.toList()
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
|
||||
Reference in New Issue
Block a user