Skip to content

Commit

Permalink
Merge pull request #116 from alex193a/fix/refactoring-string
Browse files Browse the repository at this point in the history
Refactored string to strings.xml
  • Loading branch information
ponces authored Jan 12, 2024
2 parents f1813d2 + a78ff21 commit 9ac314f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/src/main/java/me/bmax/apatch/ui/screen/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fun FloatButton(navigator: DestinationsNavigator) {
}
},
icon = { Icon(Icons.Filled.InstallMobile, "install") },
text = { Text(text = "Patch") },
text = { Text(text = stringResource(id = R.string.patch)) },
)
}
Spacer(Modifier.height(8.dp))
Expand Down Expand Up @@ -428,9 +428,10 @@ private fun AStatusCard(state: APApplication.State, navigator: DestinationsNavig
Icon(Icons.Outlined.Block, stringResource(R.string.home_install_unknown))
}
}
Column(Modifier
.weight(2f)
.padding(start = 16.dp)
Column(
Modifier
.weight(2f)
.padding(start = 16.dp)
) {
val managerVersion = getManagerVersion()
when {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<string name="home">Home</string>

<string name="patch_warnning">Installation comes with risks. Please ensure your data is backed up.</string>
<string name="patch">Patch</string>

<string name="kernel_patch">KernelPatch</string>
<string name="android_patch">AndroidPatch</string>
Expand Down

0 comments on commit 9ac314f

Please sign in to comment.