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:
@@ -214,7 +214,7 @@ class DeviceDetailsFragmentFormatterImpl(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment.listView.post {
|
fragment.lifecycleScope.launch {
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
fragment.setLoading(false, false)
|
fragment.setLoading(false, false)
|
||||||
isLoading = false
|
isLoading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user