Skip to content

Commit

Permalink
feat: update update android screen copy (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Borodin authored Jan 10, 2024
1 parent 0c21d5c commit 8b6bc94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<KnownOSIssue>,
onProceed: Callback
) {
Expand Down Expand Up @@ -101,7 +101,7 @@ fun WrongOsVersionNotificationScreen(
private fun WrongOsVersionNotificationScreenPreview() {
Box(modifier = Modifier.fillMaxSize()) {
SignerNewTheme() {
WrongOsVersionNotificationScreen(
OutdatedOsVersionScreen(
listOf(KnownOSIssue.CVE_2022_20465),
onProceed = {},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
<string name="add_derived_keys_screen_cta">Confirm and Add Keys</string>
<string name="add_derived_keys_screen_alert_title">Confirm by entering the PIN code</string>
<string name="add_derived_keys_screen_alert_content">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.</string>
<string name="initial_screen_outdated_os_title">Consider updating operation system before using vault</string>
<string name="initial_screen_outdated_os_title">Please update your operation system for higher security</string>
<string name="initial_screen_outdated_os_description">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.</string>

</resources>
Expand Down

0 comments on commit 8b6bc94

Please sign in to comment.