Repository: joreilly/confetti
Issue: Progress Indicator not showing in Wear OS client

Not sure if it's perhaps theme related.....haven't had chance yet to dig any deeper.

Changed files:
wearApp/src/main/java/dev/johnoreilly/confetti/wear/conferences/ConferencesView.kt
wearApp/src/main/java/dev/johnoreilly/confetti/wear/home/homeListView.kt

diff --git a/wearApp/src/main/java/dev/johnoreilly/confetti/wear/conferences/ConferencesView.kt b/wearApp/src/main/java/dev/johnoreilly/confetti/wear/conferences/ConferencesView.kt
index 29d2c15f..fd711e20 100644
--- a/wearApp/src/main/java/dev/johnoreilly/confetti/wear/conferences/ConferencesView.kt
+++ b/wearApp/src/main/java/dev/johnoreilly/confetti/wear/conferences/ConferencesView.kt
@@ -4,11 +4,14 @@ package dev.johnoreilly.confetti.wear.conferences
 
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.wrapContentSize
 import androidx.compose.runtime.Composable
 import androidx.compose.runtime.getValue
+import androidx.compose.ui.Alignment
 import androidx.compose.ui.Modifier
 import androidx.lifecycle.compose.collectAsStateWithLifecycle
 import androidx.wear.compose.material.Chip
+import androidx.wear.compose.material.CircularProgressIndicator
 import androidx.wear.compose.material.ListHeader
 import androidx.wear.compose.material.PositionIndicator
 import androidx.wear.compose.material.Scaffold
@@ -64,14 +67,23 @@ fun ConferencesView(
                 Text("Conferences")
             }
         }
-        items(conferenceList) { conference ->
-            Chip(
-                modifier = Modifier.fillMaxWidth(),
-                label = { Text(conference.name) },
-                onClick = {
-                    navigateToConference(conference.id)
-                },
-            )
+
+        if (conferenceList.isEmpty()) {
+            item {
+                CircularProgressIndicator(modifier = Modifier
+                    .fillMaxSize()
+                    .wrapContentSize(Alignment.Center))
+            }
+        } else {
+            items(conferenceList) { conference ->
+                Chip(
+                    modifier = Modifier.fillMaxWidth(),
+                    label = { Text(conference.name) },
+                    onClick = {
+                        navigateToConference(conference.id)
+                    },
+                )
+            }
         }
     }
 }
diff --git a/wearApp/src/main/java/dev/johnoreilly/confetti/wear/home/homeListView.kt b/wearApp/src/main/java/dev/johnoreilly/confetti/wear/home/homeListView.kt
index 3e60d1fb..04b4c9fd 100644
--- a/wearApp/src/main/java/dev/johnoreilly/confetti/wear/home/homeListView.kt
+++ b/wearApp/src/main/java/dev/johnoreilly/confetti/wear/home/homeListView.kt
@@ -5,10 +5,14 @@
 
 package dev.johnoreilly.confetti.wear.home
 
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.wrapContentSize
 import androidx.compose.material.icons.Icons
 import androidx.compose.material.icons.filled.Settings
 import androidx.compose.runtime.Composable
 import androidx.compose.runtime.remember
+import androidx.compose.ui.Alignment
+import androidx.compose.ui.Modifier
 import androidx.wear.compose.material.Button
 import androidx.wear.compose.material.CircularProgressIndicator
 import androidx.wear.compose.material.Icon
@@ -47,7 +51,11 @@ fun HomeListView(
     columnState: ScalingLazyColumnState
 ) {
     when (uiState) {
-        SessionsUiState.Loading -> CircularProgressIndicator()
+        SessionsUiState.Loading -> {
+            CircularProgressIndicator(modifier = Modifier
+                .fillMaxSize()
+                .wrapContentSize(Alignment.Center))
+        }
 
         is SessionsUiState.Success -> HomeList(uiState, sessionSelected, daySelected, onSettingsClick, columnState)
     }