Cleanup and use indeterminate progress indicator

This commit is contained in:
Benoit Marty 2023-03-16 16:31:44 +01:00
parent 8302af2dc6
commit ac8d071d43
4 changed files with 7 additions and 7 deletions

View file

@ -197,8 +197,8 @@ fun BugReportView(
}
when (state.sending) {
is Async.Loading -> {
// Indeterminate indicator, to avoid the freeze effect if the connection takes time to initialize.
CircularProgressIndicator(
progress = state.sendingProgress,
modifier = Modifier.align(Alignment.Center)
)
}

View file

@ -484,9 +484,9 @@ class DefaultBugReporter @Inject constructor(
return compressFile(logCatErrFile)
} catch (error: OutOfMemoryError) {
Timber.e(error, "## saveLogCat() : fail to write logcat$error")
Timber.e(error, "## saveLogCat() : fail to write logcat OOM")
} catch (e: Exception) {
Timber.e(e, "## saveLogCat() : fail to write logcat$e")
Timber.e(e, "## saveLogCat() : fail to write logcat")
}
return null