File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Jetcaster/mobile/src/main/java/com/example/jetcaster/ui Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ import androidx.activity.enableEdgeToEdge
2323import com.example.jetcaster.ui.theme.JetcasterTheme
2424import com.google.accompanist.adaptive.calculateDisplayFeatures
2525import dagger.hilt.android.AndroidEntryPoint
26+ import kotlinx.coroutines.CoroutineScope
27+ import kotlinx.coroutines.Dispatchers
28+ import kotlinx.coroutines.launch
2629import kotlinx.coroutines.runBlocking
2730
2831@AndroidEntryPoint
@@ -31,7 +34,7 @@ class MainActivity : ComponentActivity() {
3134 super .onCreate(savedInstanceState)
3235
3336 enableEdgeToEdge()
34- runBlocking { com.example.jetcaster.glancewidget.updateWidgetPreview(this @MainActivity) }
37+ CoroutineScope ( Dispatchers . IO ).launch { com.example.jetcaster.glancewidget.updateWidgetPreview(this @MainActivity) }
3538 setContent {
3639 val displayFeatures = calculateDisplayFeatures(this )
3740
You can’t perform that action at this time.
0 commit comments