mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-23 16:59:21 +00:00
very important button
This commit is contained in:
1 file changed
+24
-11
@@ -310,23 +310,36 @@ fun LaunchProgressCard(
|
|||||||
inProgress = uiState.inProgress
|
inProgress = uiState.inProgress
|
||||||
)
|
)
|
||||||
|
|
||||||
Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
if (uiState.reason == LaunchViewModel.LaunchCancelReason.GAME_OUTDATED) {
|
||||||
if (uiState.reason.allowsRetry()) {
|
val context = LocalContext.current
|
||||||
|
|
||||||
|
// game should be downloaded if this message is showing
|
||||||
|
val showDownload = remember {
|
||||||
|
!GamePackageUtils.identifyGameLegitimacy(context.packageManager)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (showDownload) {
|
||||||
|
GooglePlayBadge(modifier = Modifier.align(Alignment.CenterHorizontally))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (uiState.reason.allowsRetry()) {
|
||||||
|
Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||||
LongPressButton(onClick = { onResume(false) }, onLongPress = {
|
LongPressButton(onClick = { onResume(false) }, onLongPress = {
|
||||||
showSafeModeDialog = true
|
showSafeModeDialog = true
|
||||||
}) {
|
}) {
|
||||||
RetryButtonContents(uiState.reason)
|
RetryButtonContents(uiState.reason)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (crashInfo != null) {
|
if (crashInfo != null) {
|
||||||
FilledTonalButton(onClick = onMore) {
|
FilledTonalButton(onClick = onMore) {
|
||||||
Icon(
|
Icon(
|
||||||
painterResource(R.drawable.icon_question_mark),
|
painterResource(R.drawable.icon_question_mark),
|
||||||
contentDescription = null
|
contentDescription = null
|
||||||
)
|
)
|
||||||
Spacer(Modifier.size(ButtonDefaults.IconSpacing))
|
Spacer(Modifier.size(ButtonDefaults.IconSpacing))
|
||||||
Text(stringResource(R.string.launcher_error_more))
|
Text(stringResource(R.string.launcher_error_more))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user