fixed OK not working in the Add Word dialog
This commit is contained in:
parent
9ee31005b5
commit
363f9611f7
2 changed files with 2 additions and 0 deletions
|
|
@ -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">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue