manager: Modify the text padding in the ElevatedCard
- Adding Formatting Characters Signed-off-by: WenHao2130 <wenhao2130@outlook.com>
This commit is contained in:
@@ -240,7 +240,7 @@ fun HomeScreen(navigator: DestinationsNavigator) {
|
|||||||
clickCount++
|
clickCount++
|
||||||
prefs.edit { putInt("click_count", clickCount) }
|
prefs.edit { putInt("click_count", clickCount) }
|
||||||
}
|
}
|
||||||
.padding(16.dp),
|
.padding(horizontal = 24.dp, vertical = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ object ModuleUtils {
|
|||||||
}
|
}
|
||||||
}?.removeSuffix(".zip") ?: context.getString(R.string.unknown_module)
|
}?.removeSuffix(".zip") ?: context.getString(R.string.unknown_module)
|
||||||
|
|
||||||
var formattedFileName = fileName.replace(Regex("[^a-zA-Z0-9\\s\\-_.()\\u4e00-\\u9fa5]"), "").trim()
|
var formattedFileName = fileName.replace(Regex("[^a-zA-Z0-9\\s\\-_.@()\\u4e00-\\u9fa5]"), "").trim()
|
||||||
var moduleName = formattedFileName
|
var moduleName = formattedFileName
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -56,7 +56,7 @@ object ModuleUtils {
|
|||||||
while (reader.readLine().also { line = it } != null) {
|
while (reader.readLine().also { line = it } != null) {
|
||||||
if (line?.startsWith("name=") == true) {
|
if (line?.startsWith("name=") == true) {
|
||||||
moduleName = line.substringAfter("=")
|
moduleName = line.substringAfter("=")
|
||||||
moduleName = moduleName.replace(Regex("[^a-zA-Z0-9\\s\\-_.()\\u4e00-\\u9fa5]"), "").trim()
|
moduleName = moduleName.replace(Regex("[^a-zA-Z0-9\\s\\-_.@()\\u4e00-\\u9fa5]"), "").trim()
|
||||||
nameFound = true
|
nameFound = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user