Updated on 2026-08-14
This commit is contained in:
commit
dcb6e2b6d2
3 changed files with 7 additions and 4 deletions
|
|
@ -18,8 +18,7 @@ class ForegroundActivityObserver : ActivityResultCaller {
|
|||
|
||||
val foregroundActivity: AppCompatActivity?
|
||||
get() = activities.entries
|
||||
.filterNot { it.value.isDestroyed }
|
||||
.firstOrNull()
|
||||
.firstOrNull { it.value?.isDestroyed ?: false }
|
||||
?.value
|
||||
|
||||
internal val callbacks: ActivityLifecycleCallbacks
|
||||
|
|
|
|||
|
|
@ -40,7 +40,11 @@ internal class DefaultExcludedBlockchainsManager(
|
|||
.filterValues { isIncluded -> !isIncluded }
|
||||
.keys
|
||||
|
||||
currentExcludedBlockchainsIds = localExcludedBlockchainsIds + storedExcludedBlockchainsIds
|
||||
if (storedExcludedBlockchainsIds.isEmpty()) {
|
||||
recoverLocalConfig()
|
||||
} else {
|
||||
currentExcludedBlockchainsIds = storedExcludedBlockchainsIds
|
||||
}
|
||||
|
||||
isInitialized = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ internal class ExcludedBlockchainsViewModel @Inject constructor(
|
|||
state.update { state ->
|
||||
state.copy(
|
||||
popBack = router::back,
|
||||
onRestartClick = appFinisher::finish,
|
||||
onRestartClick = appFinisher::restart,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue