show device info in load failed popup

This commit is contained in:
qimiko committed 2024-02-18 04:52:40 -07:00
1 parent eeb6460548
commit 13c69cb30f
2 files changed
+9

No files matched your search

@@ -3,6 +3,7 @@ package com.geode.launcher
import android.content.ActivityNotFoundException import android.content.ActivityNotFoundException
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import android.os.Build
import android.os.Bundle import android.os.Bundle
import android.provider.DocumentsContract import android.provider.DocumentsContract
import android.text.format.Formatter.formatShortFileSize import android.text.format.Formatter.formatShortFileSize
@@ -543,6 +544,13 @@ fun ErrorInfoSheet(failureInfo: LoadFailureInfo, onDismiss: () -> Unit) {
fontFamily = FontFamily.Monospace, fontFamily = FontFamily.Monospace,
style = Typography.bodyMedium style = Typography.bodyMedium
) )
Spacer(Modifier.size(4.dp))
Text(
stringResource(R.string.launcher_error_device_info, Build.MODEL, Build.VERSION.RELEASE),
style = Typography.labelMedium
)
} }
} }
+1
View File
@@ -41,6 +41,7 @@
<string name="launcher_error_copy">Copy details</string> <string name="launcher_error_copy">Copy details</string>
<string name="launcher_error_export_crash">Share crash</string> <string name="launcher_error_export_crash">Share crash</string>
<string name="launcher_error_export_missing">No crash dump was found!</string> <string name="launcher_error_export_missing">No crash dump was found!</string>
<string name="launcher_error_device_info">Android %2$s, %1$s</string>
<!-- Updater strings --> <!-- Updater strings -->
<string name="release_fetch_failed">Update failed.\n%1$s</string> <string name="release_fetch_failed">Update failed.\n%1$s</string>