mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50: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 {
|
} 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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user