Updated on 2026-08-14
This commit is contained in:
parent
3657431565
commit
4a638a4b4f
2 changed files with 2 additions and 3 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue