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++
|
||||
prefs.edit { putInt("click_count", clickCount) }
|
||||
}
|
||||
.padding(16.dp),
|
||||
.padding(horizontal = 24.dp, vertical = 16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
Text(
|
||||
|
||||
@@ -33,7 +33,7 @@ object ModuleUtils {
|
||||
}
|
||||
}?.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
|
||||
|
||||
try {
|
||||
@@ -56,7 +56,7 @@ object ModuleUtils {
|
||||
while (reader.readLine().also { line = it } != null) {
|
||||
if (line?.startsWith("name=") == true) {
|
||||
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
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user