Loading
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