Prevent crash

pull/206/head
M66B 3 years ago
parent 50af1c5fb5
commit b09a90b247

@ -222,6 +222,16 @@ public class FixedEditText extends AppCompatEditText {
} }
} }
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
try {
return super.onKeyUp(keyCode, event);
} catch (Throwable ex) {
Log.w(ex);
return true;
}
}
@Override @Override
public boolean performClick() { public boolean performClick() {
try { try {

@ -22,6 +22,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="24dp" android:layout_marginTop="24dp"
android:imeOptions="actionDone"
android:inputType="text|textNoSuggestions" android:inputType="text|textNoSuggestions"
android:maxLines="1" android:maxLines="1"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"

@ -81,7 +81,7 @@
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:autofillHints="name" android:autofillHints="name"
android:hint="@string/title_identity_name" android:hint="@string/title_identity_name"
android:imeOptions="actionNext" android:imeOptions="actionDone"
android:inputType="textPersonName|textCapWords" android:inputType="textPersonName|textCapWords"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

@ -164,6 +164,7 @@
android:layout_width="100dp" android:layout_width="100dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="20" android:hint="20"
android:imeOptions="actionDone"
android:inputType="number" android:inputType="number"
android:maxLength="4" android:maxLength="4"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"

@ -312,6 +312,7 @@
android:layout_width="100dp" android:layout_width="100dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="20" android:hint="20"
android:imeOptions="actionDone"
android:inputType="number" android:inputType="number"
android:maxLength="3" android:maxLength="3"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAppearance="@style/TextAppearance.AppCompat.Medium"

@ -38,10 +38,11 @@
app:layout_constraintTop_toTopOf="@+id/btnColor" app:layout_constraintTop_toTopOf="@+id/btnColor"
app:srcCompat="@drawable/twotone_edit_24" /> app:srcCompat="@drawable/twotone_edit_24" />
<EditText <eu.faircode.email.EditTextPlain
android:id="@+id/etKeyword" android:id="@+id/etKeyword"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:imeOptions="actionDone"
android:inputType="text" android:inputType="text"
android:text="Title" android:text="Title"
app:layout_constraintBottom_toBottomOf="@+id/btnColor" app:layout_constraintBottom_toBottomOf="@+id/btnColor"

Loading…
Cancel
Save