Skip to content

Commit

Permalink
show device info in load failed popup
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Feb 18, 2024
1 parent eeb6460 commit 13c69cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/main/java/com/geode/launcher/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.geode.launcher
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.provider.DocumentsContract
import android.text.format.Formatter.formatShortFileSize
Expand Down Expand Up @@ -543,6 +544,13 @@ fun ErrorInfoSheet(failureInfo: LoadFailureInfo, onDismiss: () -> Unit) {
fontFamily = FontFamily.Monospace,
style = Typography.bodyMedium
)

Spacer(Modifier.size(4.dp))

Text(
stringResource(R.string.launcher_error_device_info, Build.MODEL, Build.VERSION.RELEASE),
style = Typography.labelMedium
)
}
}

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<string name="launcher_error_copy">Copy details</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_device_info">Android %2$s, %1$s</string>

<!-- Updater strings -->
<string name="release_fetch_failed">Update failed.\n%1$s</string>
Expand Down

0 comments on commit 13c69cb

Please sign in to comment.