fix: Multiple crashes

This commit is contained in:
ΞTΞRNAL
2025-10-09 14:03:57 +05:30
parent a25b66a385
commit d832ffcac4
6 changed files with 28 additions and 23 deletions

View File

@@ -354,6 +354,9 @@
},
"features": {
"friend_notes": {
"placeholder": "Click to add a note"
},
"notices": {
"unstable": "\u26A0 Unstable",
"ban_risk": "\u26A0 This feature may cause bans",

View File

@@ -26,7 +26,7 @@ import me.rhunk.snapenhance.common.bridge.wrapper.LocaleWrapper
fun EditNoteTextField(
modifier: Modifier = Modifier,
primaryColor: Color,
translation: LocaleWrapper,
placeholder: String,
content: String?,
setContent: (String) -> Unit
) {
@@ -49,7 +49,7 @@ fun EditNoteTextField(
},
shape = MaterialTheme.shapes.medium,
textStyle = LocalTextStyle.current.copy(fontSize = 12.sp, color = primaryColor),
placeholder = { Text(text = translation["manager.sections.manage_scope.notes_placeholder"], fontSize = 12.sp) }
placeholder = { Text(text = placeholder, fontSize = 12.sp) }
)
}