@@ -4,6 +4,7 @@ import android.content.Intent
4import android.util.Log
4import android.util.Log
5import androidx.compose.foundation.clickable
5import androidx.compose.foundation.clickable
6import androidx.compose.foundation.layout.Arrangement
6import androidx.compose.foundation.layout.Arrangement
7+import androidx.compose.foundation.layout.Box
7import androidx.compose.foundation.layout.Column
8import androidx.compose.foundation.layout.Column
8import androidx.compose.foundation.layout.Row
9import androidx.compose.foundation.layout.Row
9import androidx.compose.foundation.layout.Spacer
10import androidx.compose.foundation.layout.Spacer
@@ -19,6 +20,7 @@ import androidx.compose.material.icons.filled.BugReport
19import androidx.compose.material.icons.filled.DeleteSweep
20import androidx.compose.material.icons.filled.DeleteSweep
20import androidx.compose.material.icons.filled.Share
21import androidx.compose.material.icons.filled.Share
21import androidx.compose.material3.AlertDialog
22import androidx.compose.material3.AlertDialog
23+import androidx.compose.material3.CircularProgressIndicator
22import androidx.compose.material3.ExperimentalMaterial3Api
24import androidx.compose.material3.ExperimentalMaterial3Api
23import androidx.compose.material3.HorizontalDivider
25import androidx.compose.material3.HorizontalDivider
24import androidx.compose.material3.Icon
26import androidx.compose.material3.Icon
@@ -44,6 +46,7 @@ import androidx.compose.ui.Modifier
44import androidx.compose.ui.platform.LocalContext
46import androidx.compose.ui.platform.LocalContext
45import androidx.compose.ui.res.stringResource
47import androidx.compose.ui.res.stringResource
46import androidx.compose.ui.semantics.Role
48import androidx.compose.ui.semantics.Role
49+import androidx.compose.ui.semantics.contentDescription
47import androidx.compose.ui.semantics.heading
50import androidx.compose.ui.semantics.heading
48import androidx.compose.ui.semantics.role
51import androidx.compose.ui.semantics.role
49import androidx.compose.ui.semantics.semantics
52import androidx.compose.ui.semantics.semantics
@@ -189,11 +192,21 @@ fun DiagnosticsScreen(onBack: () -> Unit) {
190 title = { Text(stringResource(R.string.crash_report)) },
193 title = { Text(stringResource(R.string.crash_report)) },
195+ if (content != null) {
193− content ?: "",
197+ content,
194− style = MaterialTheme.typography.bodySmall,
198+ style = MaterialTheme.typography.bodySmall,
195− modifier = Modifier.fillMaxWidth(),
199+ modifier = Modifier.fillMaxWidth(),
202+ val loadingLabel = stringResource(R.string.loading)
204+ modifier = Modifier.fillMaxWidth().padding(vertical = 24.dp),
205+ contentAlignment = Alignment.Center,
207+ CircularProgressIndicator(Modifier.semantics { contentDescription = loadingLabel })