Skip to content

Commit

Permalink
Set default value for immediate
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
  • Loading branch information
ArnyminerZ authored and rfc2822 committed May 10, 2024
1 parent c2aacae commit 65f2665
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fun broadcastReceiverFlow(
context: Context,
filter: IntentFilter,
flags: Int? = null,
immediate: Boolean
immediate: Boolean = true
): Flow<Intent> = callbackFlow {
val receiver = object: BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
Expand Down

0 comments on commit 65f2665

Please sign in to comment.