Skip to content

Commit

Permalink
better to not reduce all information
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed May 20, 2024
1 parent 545a0d6 commit 18cb201
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions app/src/main/java/com/geode/launcher/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,17 @@ fun UpdateCard(releaseViewModel: ReleaseViewModel, modifier: Modifier = Modifier
ReleaseManager.UpdateException.Reason.EXTERNAL_FILE_IN_USE -> stringResource(
R.string.release_fetch_manual_check_required
)
else -> state.exception.message
else -> null
}
}
else -> state.exception.message
else -> null
}

UpdateMessageIndicator(
stringResource(R.string.release_fetch_failed, message ?: ""),
stringResource(
R.string.release_fetch_failed,
message ?: stringResource(R.string.release_fetch_try_later)
),
modifier = modifier,
allowRetry = true,
releaseViewModel = releaseViewModel
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<string name="launcher_error_device_info">Android %2$s, %1$s</string>

<!-- Updater strings -->
<string name="release_fetch_failed">Update failed. Please try again later.</string>
<string name="release_fetch_failed">Update failed.\n%1$s</string>
<string name="release_fetch_no_releases">No updates found.</string>
<string name="release_fetch_in_progress">Checking for new releases…</string>
<string name="release_fetch_success">Geode updated!</string>
Expand All @@ -58,6 +58,7 @@
<string name="release_fetch_cancelled">Update cancelled.</string>
<string name="release_fetch_button_retry">Retry</string>
<string name="release_fetch_button_cancel">Cancel</string>
<string name="release_fetch_try_later">Please try again later.</string>
<string name="release_fetch_manual_check_required">Externally managed library in use, please manually check for updates if you want to overwrite it.</string>

<!-- GeometryDashActivity strings -->
Expand Down

0 comments on commit 18cb201

Please sign in to comment.