Use lifecycleScope.launch instead of post

BUG: 385430945
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I30200154062115ea2db6bc87cfbc0ec339ec3171
This commit is contained in:
Haijie Hong
2025-01-13 19:38:46 +08:00
parent 44e13bf11e
commit 21395089e0

View File

@@ -214,7 +214,7 @@ class DeviceDetailsFragmentFormatterImpl(
}
}
fragment.listView.post {
fragment.lifecycleScope.launch {
if (isLoading) {
fragment.setLoading(false, false)
isLoading = false