Skip to content
Snippets Groups Projects
Verified Commit fa7f3e59 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes a crash noticed only through monkey testing

parent 9f8c47f3
Branches
Tags
No related merge requests found
Pipeline #
......@@ -110,8 +110,7 @@ class AccountEditActivity : DaggerAppCompatActivity() {
hostValidator = object : TextValidator(
hostWrapper::setError, resources.getString(R.string.hint_invalid_host)
) {
override fun validate(text: Editable) =
text.toString().matches(Patterns.DOMAIN_NAME)
override fun validate(text: Editable) = text.toString().matches(Patterns.DOMAIN_NAME)
}
portValidator = object : TextValidator(
......
......@@ -56,14 +56,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/label_account_name"
app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text" />
android:inputType="text"
app:errorEnabled="true" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
......@@ -100,14 +100,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/label_connection_host"
app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText
android:id="@+id/host"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textUri" />
android:inputType="textUri"
app:errorEnabled="true" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
......@@ -115,7 +115,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/labelConnectionPort"
app:errorEnabled="true"
tools:ignore="LabelFor">
<EditText
......@@ -123,7 +122,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:text="@string/defaultConnectionPort" />
android:text="@string/defaultConnectionPort"
app:errorEnabled="true" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
</LinearLayout>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment