1
0
Fork 0

fixed OK not working in the Add Word dialog

This commit is contained in:
sspanak 2023-01-16 15:41:20 +02:00 committed by Dimo Karaivanov
parent 9ee31005b5
commit 363f9611f7
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="4dp" android:layout_marginVertical="4dp"
android:inputType="text" android:inputType="text"
android:imeOptions="actionSend"
android:privateImeOptions="io.github.sspanak.tt9.addword=true" android:privateImeOptions="io.github.sspanak.tt9.addword=true"
android:importantForAutofill="no"> android:importantForAutofill="no">

View file

@ -43,6 +43,7 @@ public class AddWordAct extends AppCompatActivity {
View v = getLayoutInflater().inflate(R.layout.addwordview, null); View v = getLayoutInflater().inflate(R.layout.addwordview, null);
EditText et = v.findViewById(R.id.add_word_text); EditText et = v.findViewById(R.id.add_word_text);
et.setOnClickListener(this::addWord);
et.setText(word); et.setText(word);
et.setSelection(word.length()); et.setSelection(word.length());
setContentView(v); setContentView(v);