chore: simplify do refresh

This commit is contained in:
septs 2024-11-30 09:18:19 +08:00 committed by Peter Cai
parent 3e7879164b
commit 5e1108fc7c

View file

@ -187,11 +187,11 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
ensureEuiccChannelManager()
euiccChannelManagerService.waitForForegroundTask()
if (!this@EuiccManagementFragment::disableSafeguardFlow.isInitialized) {
if (!::disableSafeguardFlow.isInitialized) {
disableSafeguardFlow =
preferenceRepository.disableSafeguardFlow.stateIn(lifecycleScope)
}
if (!this@EuiccManagementFragment::unfilteredProfileListFlow.isInitialized) {
if (!::unfilteredProfileListFlow.isInitialized) {
unfilteredProfileListFlow =
preferenceRepository.unfilteredProfileListFlow.stateIn(lifecycleScope)
}