Skip to content

Commit 2c08320

Browse files
committed
check if applicationId length is less or equal to the max length, instead of range.
1 parent a663c1d commit 2c08320

File tree

1 file changed

+1
-1
lines changed
  • feature_settings/src/main/java/com/my/kizzy/feature_settings/rpc_settings

1 file changed

+1
-1
lines changed

feature_settings/src/main/java/com/my/kizzy/feature_settings/rpc_settings/RpcSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ fun RpcSettings(onBackPressed: () -> Boolean) {
442442
isError = customApplicationId.length !in MAX_APPLICATION_ID_LENGTH_RANGE || !customApplicationId.all { it.isDigit() },
443443
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number),
444444
onValueChange = { newText ->
445-
if (newText.length in MAX_APPLICATION_ID_LENGTH_RANGE && newText.all { it.isDigit() }) {
445+
if (newText.length <= MAX_APPLICATION_ID_LENGTH_RANGE.last && newText.all { it.isDigit() }) {
446446
customApplicationId = newText
447447
}
448448
}

0 commit comments

Comments
 (0)