From 8b6bc9433c5b7e9a6aa7646eb190b1a315b9facf Mon Sep 17 00:00:00 2001 From: Dmitry Borodin <11879032+Dmitry-Borodin@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:50:56 -0500 Subject: [PATCH] feat: update update android screen copy (#2276) --- .../{ErrorWrongUpdateScreen.kt => OutdatedOsVersionScreen.kt} | 4 ++-- .../signer/screens/initial/firstTimeOnly/FirstTimeOnly.kt | 4 ++-- android/src/main/res/values/strings.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/{ErrorWrongUpdateScreen.kt => OutdatedOsVersionScreen.kt} (97%) diff --git a/android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/ErrorWrongUpdateScreen.kt b/android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/OutdatedOsVersionScreen.kt similarity index 97% rename from android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/ErrorWrongUpdateScreen.kt rename to android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/OutdatedOsVersionScreen.kt index fcbd31d95a..08b20e3dcb 100644 --- a/android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/ErrorWrongUpdateScreen.kt +++ b/android/src/main/java/io/parity/signer/screens/initial/eachstartchecks/osversion/OutdatedOsVersionScreen.kt @@ -32,7 +32,7 @@ import io.parity.signer.ui.theme.pink500 import io.parity.signer.ui.theme.textTertiary @Composable -fun WrongOsVersionNotificationScreen( +fun OutdatedOsVersionScreen( exposedVulnarabilities: List, onProceed: Callback ) { @@ -101,7 +101,7 @@ fun WrongOsVersionNotificationScreen( private fun WrongOsVersionNotificationScreenPreview() { Box(modifier = Modifier.fillMaxSize()) { SignerNewTheme() { - WrongOsVersionNotificationScreen( + OutdatedOsVersionScreen( listOf(KnownOSIssue.CVE_2022_20465), onProceed = {}, ) diff --git a/android/src/main/java/io/parity/signer/screens/initial/firstTimeOnly/FirstTimeOnly.kt b/android/src/main/java/io/parity/signer/screens/initial/firstTimeOnly/FirstTimeOnly.kt index 83a85d4494..a348127cab 100644 --- a/android/src/main/java/io/parity/signer/screens/initial/firstTimeOnly/FirstTimeOnly.kt +++ b/android/src/main/java/io/parity/signer/screens/initial/firstTimeOnly/FirstTimeOnly.kt @@ -5,7 +5,7 @@ import androidx.navigation.NavGraphBuilder import androidx.navigation.NavHostController import androidx.navigation.compose.composable import androidx.navigation.navigation -import io.parity.signer.screens.initial.eachstartchecks.osversion.WrongOsVersionNotificationScreen +import io.parity.signer.screens.initial.eachstartchecks.osversion.OutdatedOsVersionScreen import io.parity.signer.screens.initial.eachstartchecks.osversion.OutdatedOsVersionViewModel import io.parity.signer.screens.initial.termsconsent.TermsConsentScreenFull import io.parity.signer.ui.rootnavigation.MainGraphRoutes @@ -22,7 +22,7 @@ fun NavGraphBuilder.firstTimeOnlyOnboarding( composable(route = FirstTimeOnboarding.osVersionNotification) { val osVersionVM: OutdatedOsVersionViewModel = viewModel() if (osVersionVM.isShouldShow()) { - WrongOsVersionNotificationScreen( + OutdatedOsVersionScreen( exposedVulnarabilities = osVersionVM.getVulnerabilities(), onProceed = { navController.navigate(FirstTimeOnboarding.termsConsentRoute) { diff --git a/android/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml index 2b591977dd..e92c3a832d 100644 --- a/android/src/main/res/values/strings.xml +++ b/android/src/main/res/values/strings.xml @@ -454,7 +454,7 @@ Confirm and Add Keys Confirm by entering the PIN code To finalize the addition of keys to the key set, please confirm that you have scanned the QR code back into the app by entering the PIN code. - Consider updating operation system before using vault + Please update your operation system for higher security Current Android version missing important security updated, exposed to at least: %1$s. It is recommended to install vault on up to date android version.