Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
e0b8ffaf
Commit
e0b8ffaf
authored
May 08, 2017
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let the click
parent
265d6c5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
LinkMovementMethodCompat.java
...ocket/android/widget/helper/LinkMovementMethodCompat.java
+1
-1
Linkify.java
.../main/java/chat/rocket/android/widget/helper/Linkify.java
+2
-0
No files found.
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/helper/LinkMovementMethodCompat.java
View file @
e0b8ffaf
...
@@ -57,6 +57,6 @@ public class LinkMovementMethodCompat extends LinkMovementMethod {
...
@@ -57,6 +57,6 @@ public class LinkMovementMethodCompat extends LinkMovementMethod {
}
}
}
}
return
Touch
.
onTouchEvent
(
widget
,
buffer
,
event
)
;
return
false
;
}
}
}
}
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/helper/Linkify.java
View file @
e0b8ffaf
...
@@ -20,6 +20,8 @@ public class Linkify {
...
@@ -20,6 +20,8 @@ public class Linkify {
public
static
void
markup
(
TextView
textview
)
{
public
static
void
markup
(
TextView
textview
)
{
textview
.
setMovementMethod
(
LinkMovementMethodCompat
.
getInstance
());
textview
.
setMovementMethod
(
LinkMovementMethodCompat
.
getInstance
());
textview
.
setClickable
(
false
);
textview
.
setLongClickable
(
false
);
final
CharSequence
text
=
textview
.
getText
();
final
CharSequence
text
=
textview
.
getText
();
textview
.
setText
(
markupInner
(
text
));
textview
.
setText
(
markupInner
(
text
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment