Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
a0b4ba10
Verified
Commit
a0b4ba10
authored
6 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Allow just-whitespace messages
parent
3d112b91
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/de/kuschku/quasseldroid/ui/chat/input/ChatlineFragment.kt
+2
-2
2 additions, 2 deletions
...de/kuschku/quasseldroid/ui/chat/input/ChatlineFragment.kt
with
2 additions
and
2 deletions
app/src/main/java/de/kuschku/quasseldroid/ui/chat/input/ChatlineFragment.kt
+
2
−
2
View file @
a0b4ba10
...
@@ -168,7 +168,7 @@ class ChatlineFragment : ServiceBoundFragment() {
...
@@ -168,7 +168,7 @@ class ChatlineFragment : ServiceBoundFragment() {
}
}
fun
send
()
{
fun
send
()
{
if
(
chatline
.
safeText
.
isNot
Blank
())
{
if
(
chatline
.
safeText
.
isNot
Empty
())
{
val
lines
=
chatline
.
safeText
.
lineSequence
().
map
{
val
lines
=
chatline
.
safeText
.
lineSequence
().
map
{
SpannableString
(
it
).
apply
{
SpannableString
(
it
).
apply
{
for
(
span
in
getSpans
(
0
,
length
,
Any
::
class
.
java
))
{
for
(
span
in
getSpans
(
0
,
length
,
Any
::
class
.
java
))
{
...
@@ -225,7 +225,7 @@ class ChatlineFragment : ServiceBoundFragment() {
...
@@ -225,7 +225,7 @@ class ChatlineFragment : ServiceBoundFragment() {
}
}
fun
replaceText
(
text
:
CharSequence
)
{
fun
replaceText
(
text
:
CharSequence
)
{
if
(
chatline
.
safeText
.
isNot
Blank
())
{
if
(
chatline
.
safeText
.
isNot
Empty
())
{
chatline
.
safeText
.
lineSequence
().
forEach
(
viewModel
::
addRecentlySentMessage
)
chatline
.
safeText
.
lineSequence
().
forEach
(
viewModel
::
addRecentlySentMessage
)
}
}
editorHelper
.
replaceText
(
text
)
editorHelper
.
replaceText
(
text
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment