feat: Input box for subscription link supports multi-line display

This commit is contained in:
arm64v8a 2023-07-16 16:41:01 +09:00
parent 1937a1fecd
commit a1ae327234
2 changed files with 4 additions and 2 deletions

View File

@ -48,6 +48,9 @@ constructor(
} else { } else {
linkLayout.isErrorEnabled = false linkLayout.isErrorEnabled = false
} }
if (link.contains("\n")) {
linkLayout.error = "Unexpected new line"
}
} catch (e: Exception) { } catch (e: Exception) {
linkLayout.error = e.readableMessage linkLayout.error = e.readableMessage
linkLayout.isErrorEnabled = true linkLayout.isErrorEnabled = true

View File

@ -24,10 +24,9 @@
android:id="@android:id/edit" android:id="@android:id/edit"
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|textMultiLine"
android:minHeight="48dp" android:minHeight="48dp"
android:paddingTop="12dp" android:paddingTop="12dp"
android:singleLine="true"
android:typeface="monospace" /> android:typeface="monospace" />
<LinearLayout <LinearLayout