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