Sumedh Sen b6b88351b6 Skip checking if a broadcastreceiver was already registered
If AppRestoreButton decides to dispose DisposableBroadcastReceiverAsUser
while recomposition, the broadcast receiver will be unregistered. If
this happens, there will be no visual feedback while restoring the app.
Thus, always render the DisposableBroadcastReceiverAsUser composable at
each recomposition of AppRestoreButton.

Since DisposableBroadcastReceiverAsUser uses `LaunchedEffect`, it wont
register a broadcast receiver at every recomposition.

Bug: 391744608
Test: atest SettingsSpaUnitTests
Flag: EXEMPT. Bug fix only
Change-Id: I420f95da363cf4da1a48150d32aec763c9159a1c
2025-02-05 14:56:38 -08:00
2022-04-14 09:55:36 +00:00
2024-07-30 11:34:24 +08:00
2025-01-29 06:40:44 -08:00
2023-09-28 10:40:22 -07:00
2019-11-25 20:28:35 +09:00
2024-11-28 09:15:16 +00:00
2024-11-22 12:59:43 +00:00
2024-06-27 08:46:17 +00:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%