Fix TextInput::message on mobile (#9549)

This issue from https://github.com/Anuken/Arc/commit/70f345cc75f541de8f592d3167245691cc9a765b
This commit is contained in:
SITUVNgcd
2024-02-13 23:17:41 -05:00
committed by GitHub
parent 0d273503be
commit 7339443604
+1 -1
View File
@@ -279,7 +279,7 @@ public class UI implements ApplicationListener, Loadable{
public void showTextInput(String titleText, String text, int textLength, String def, boolean numbers, boolean allowEmpty, Cons<String> confirmed, Runnable closed){ public void showTextInput(String titleText, String text, int textLength, String def, boolean numbers, boolean allowEmpty, Cons<String> confirmed, Runnable closed){
if(mobile){ if(mobile){
var description = text; var description = (text.startsWith("@") ? Core.bundle.get(text.substring(1)) : text);
var empty = allowEmpty; var empty = allowEmpty;
Core.input.getTextInput(new TextInput(){{ Core.input.getTextInput(new TextInput(){{
this.title = (titleText.startsWith("@") ? Core.bundle.get(titleText.substring(1)) : titleText); this.title = (titleText.startsWith("@") ? Core.bundle.get(titleText.substring(1)) : titleText);