From a78ff21148cce898369f7e991f79a5d29814acdb Mon Sep 17 00:00:00 2001
From: Alessandro Paluzzi <8174240+alex193a@users.noreply.github.com>
Date: Fri, 12 Jan 2024 09:04:59 +0100
Subject: [PATCH] Refactored "Patch" string to strings.xml
---
app/src/main/java/me/bmax/apatch/ui/screen/Home.kt | 9 +++++----
app/src/main/res/values/strings.xml | 1 +
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/app/src/main/java/me/bmax/apatch/ui/screen/Home.kt b/app/src/main/java/me/bmax/apatch/ui/screen/Home.kt
index 2068f0c3b..a8a0db468 100644
--- a/app/src/main/java/me/bmax/apatch/ui/screen/Home.kt
+++ b/app/src/main/java/me/bmax/apatch/ui/screen/Home.kt
@@ -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))
@@ -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 {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index de2840780..11e563912 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -4,6 +4,7 @@
Home
Installation comes with risks. Please ensure your data is backed up.
+ Patch
KernelPatch
AndroidPatch