spotlessApply
This commit is contained in:
+5
-2
@@ -97,7 +97,10 @@ fun WalletTransactionsScreen(
|
|||||||
|
|
||||||
val shouldLoadMore by remember {
|
val shouldLoadMore by remember {
|
||||||
derivedStateOf {
|
derivedStateOf {
|
||||||
val lastVisibleIndex = listState.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0
|
val lastVisibleIndex =
|
||||||
|
listState.layoutInfo.visibleItemsInfo
|
||||||
|
.lastOrNull()
|
||||||
|
?.index ?: 0
|
||||||
val totalItems = listState.layoutInfo.totalItemsCount
|
val totalItems = listState.layoutInfo.totalItemsCount
|
||||||
lastVisibleIndex >= totalItems - 5 && !isLoadingMore && hasMore && transactions.isNotEmpty()
|
lastVisibleIndex >= totalItems - 5 && !isLoadingMore && hasMore && transactions.isNotEmpty()
|
||||||
}
|
}
|
||||||
@@ -386,7 +389,7 @@ private fun TransactionUserName(
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Text(
|
Text(
|
||||||
text = fallbackName ?: pubkeyHex.take(8) + "...",
|
text = fallbackName ?: (pubkeyHex.take(8) + "..."),
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
|
|||||||
-1
@@ -40,7 +40,6 @@ import kotlinx.coroutines.Dispatchers
|
|||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.asStateFlow
|
import kotlinx.coroutines.flow.asStateFlow
|
||||||
import kotlinx.coroutines.flow.combine
|
import kotlinx.coroutines.flow.combine
|
||||||
import kotlinx.coroutines.flow.stateIn
|
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
sealed class SendState {
|
sealed class SendState {
|
||||||
|
|||||||
Reference in New Issue
Block a user