Skip to content

Commit 3d50cae

Browse files
author
Lucas Sales
committed
Add AOSP urls
1 parent 47b1bc2 commit 3d50cae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/src/main/java/com/monstarlab/arch/extensions/FlowExtensions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import kotlinx.coroutines.flow.*
77
import kotlinx.coroutines.launch
88

99
/**
10+
* Copied from AOSP https://android.googlesource.com/platform/frameworks/support/+/67cbbea03d7036f3bd27aae897a3d44b2ee027f5/lifecycle/lifecycle-runtime-ktx/src/main/java/androidx/lifecycle/FlowExt.kt
1011
* Flow operator that emits values from `this` upstream Flow when the [lifecycle] is
1112
* at least at [minActiveState] state. The emissions will be stopped when the lifecycle state
1213
* falls below [minActiveState] state.

app/src/main/java/com/monstarlab/arch/extensions/RepeatOnLifecycle.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import kotlin.coroutines.CoroutineContext
3131
import kotlin.coroutines.EmptyCoroutineContext
3232
import kotlin.coroutines.resume
3333
/**
34+
* Copied from AOSP https://android.googlesource.com/platform/frameworks/support/+/67cbbea03d7036f3bd27aae897a3d44b2ee027f5/lifecycle/lifecycle-runtime-ktx/src/main/java/androidx/lifecycle/RepeatOnLifecycle.kt
3435
* Launches and runs the given [block] in a coroutine when `this` [LifecycleOwner]'s [Lifecycle]
3536
* is at least at [state]. The launched coroutine will be cancelled when the lifecycle state falls
3637
* below [state].

0 commit comments

Comments
 (0)