Skip to content

Commit dd5f814

Browse files
committed
style(android): fix ktlint drift in ShellScreen.kt
Formatting drift landed via #101161; :app:ktlintCheck fails on main without this. Generated with ./gradlew :app:ktlintFormat.
1 parent ceb7a4a commit dd5f814

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

apps/android/app/src/main/java/ai/openclaw/app/ui/ShellScreen.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -883,18 +883,14 @@ internal fun overviewRecentSessions(sessions: List<ChatSessionEntry>): List<Chat
883883
.sortedWith(
884884
compareByDescending<IndexedValue<ChatSessionEntry>> { entry -> entry.value.overviewRecentSessionRecencyMs() }
885885
.thenBy { entry -> entry.index },
886-
)
887-
.first()
888-
}
889-
.sortedWith(
886+
).first()
887+
}.sortedWith(
890888
compareByDescending<IndexedValue<ChatSessionEntry>> { entry -> entry.value.overviewRecentSessionRecencyMs() }
891889
.thenBy { entry -> entry.value.key },
892-
)
893-
.take(overviewRecentSessionLimit)
890+
).take(overviewRecentSessionLimit)
894891
.map { entry -> entry.value }
895892

896-
private fun ChatSessionEntry.overviewRecentSessionRecencyMs(): Long =
897-
lastActivityAt ?: updatedAtMs ?: Long.MIN_VALUE
893+
private fun ChatSessionEntry.overviewRecentSessionRecencyMs(): Long = lastActivityAt ?: updatedAtMs ?: Long.MIN_VALUE
898894

899895
internal data class OverviewMetricCard(
900896
val title: String,

0 commit comments

Comments
 (0)