Skip to content

Commit

Permalink
Fix RTE in register not exported receiver (#4542)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/488551667048375/1207164955333544/f

### Description
See attached task description

### Steps to test this PR
Smoke test app (a bit of focus on download and widgets)
  • Loading branch information
karlenDimla authored May 14, 2024
1 parent 2d1b966 commit cb0a7f3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ fun Context.registerNotExportedReceiver(
receiver: BroadcastReceiver,
intentFilter: IntentFilter,
) {
ContextCompat.registerReceiver(this, receiver, intentFilter, ContextCompat.RECEIVER_NOT_EXPORTED)
kotlin.runCatching {
ContextCompat.registerReceiver(this, receiver, intentFilter, ContextCompat.RECEIVER_NOT_EXPORTED)
}
}

fun Context.registerExportedReceiver(
Expand Down

0 comments on commit cb0a7f3

Please sign in to comment.