Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #750 from code-a1/develop
Browse files Browse the repository at this point in the history
Replacing hard-coded strings in applocked UI
  • Loading branch information
ILIYANGERMANOV authored Apr 19, 2022
2 parents 178691c + f57c1c0 commit 759ae0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
Expand Down Expand Up @@ -46,7 +47,7 @@ fun BoxWithConstraintsScope.AppLockedScreen(
.background(UI.colors.medium, UI.shapes.rFull)
.padding(vertical = 12.dp)
.padding(horizontal = 32.dp),
text = "APP LOCKED",
text = stringResource(R.string.app_locked),
style = UI.typo.b2.style(
fontWeight = FontWeight.ExtraBold,
)
Expand All @@ -66,7 +67,7 @@ fun BoxWithConstraintsScope.AppLockedScreen(
Spacer(Modifier.weight(1f))

Text(
text = "Authenticate to enter the app",
text = stringResource(R.string.authenticate_text),
style = UI.typo.b2.style(
fontWeight = FontWeight.SemiBold,
color = Gray
Expand All @@ -80,7 +81,7 @@ fun BoxWithConstraintsScope.AppLockedScreen(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
text = "Unlock",
text = stringResource(R.string.unlock),
textStyle = UI.typo.b2.style(
color = White,
fontWeight = FontWeight.Bold,
Expand Down Expand Up @@ -128,4 +129,4 @@ private fun Preview_Locked() {
onShowOSBiometricsModal = {}
)
}
}
}
6 changes: 5 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
</resources>
<string name="app_locked">APP LOCKED</string>
<string name="authenticate_text">Authenticate to enter the app</string>
<string name="unlock">Unlock</string>
</resources>

0 comments on commit 759ae0c

Please sign in to comment.