| commit | 02cdf414c19017029fee72e400149472c1237d67 | [log] [tgz] |
|---|---|---|
| author | Willie Koomson <[email protected]> | Mon Jun 12 11:38:39 2023 -0700 |
| committer | Willie Koomson <[email protected]> | Mon Jun 12 11:38:39 2023 -0700 |
| tree | aaeb0ea4e6060c0b81004bc602d47872444e1ed6 | |
| parent | 55bd59a35fffc411b0c9978e5f4e43578ff8a5fd [diff] |
Fix CoroutineBroadcastReceiverTest Set the package for the broadcast intent, which is necessary for receivers marked RECEIVER_NOT_EXPORTED. Bug: 283315123 Test: CoroutineBroadcastReceiverTest on androidx-platform-dev Change-Id: I2ffa880beb373af8b61267135502de9678f70f84
diff --git a/glance/glance-appwidget/src/androidTest/kotlin/androidx/glance/appwidget/CoroutineBroadcastReceiverTest.kt b/glance/glance-appwidget/src/androidTest/kotlin/androidx/glance/appwidget/CoroutineBroadcastReceiverTest.kt index d7693a77..551c543 100644 --- a/glance/glance-appwidget/src/androidTest/kotlin/androidx/glance/appwidget/CoroutineBroadcastReceiverTest.kt +++ b/glance/glance-appwidget/src/androidTest/kotlin/androidx/glance/appwidget/CoroutineBroadcastReceiverTest.kt
@@ -76,6 +76,7 @@ val value = "value" context.sendBroadcast( Intent(BROADCAST_ACTION) + .setPackage(context.packageName) .putExtra(EXTRA_STRING, value) .addFlags(Intent.FLAG_RECEIVER_FOREGROUND) )