mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
feat: Input box for subscription link supports multi-line display
This commit is contained in:
parent
1937a1fecd
commit
a1ae327234
@ -48,6 +48,9 @@ constructor(
|
||||
} else {
|
||||
linkLayout.isErrorEnabled = false
|
||||
}
|
||||
if (link.contains("\n")) {
|
||||
linkLayout.error = "Unexpected new line"
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
linkLayout.error = e.readableMessage
|
||||
linkLayout.isErrorEnabled = true
|
||||
|
||||
@ -24,10 +24,9 @@
|
||||
android:id="@android:id/edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textUri"
|
||||
android:inputType="textUri|textMultiLine"
|
||||
android:minHeight="48dp"
|
||||
android:paddingTop="12dp"
|
||||
android:singleLine="true"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<LinearLayout
|
||||
|
||||
Loading…
Reference in New Issue
Block a user