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
8ef54741
Commit
8ef54741
authored
Mar 20, 2017
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Method renaming
parent
e72cbd0b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
RocketChatAbsoluteUrl.java
...cket/android/fragment/chatroom/RocketChatAbsoluteUrl.java
+1
-1
Avatar.java
app/src/main/java/chat/rocket/android/helper/Avatar.java
+1
-1
AbsoluteUrl.java
...src/main/java/chat/rocket/android/widget/AbsoluteUrl.java
+1
-1
RocketChatMessageAttachmentsLayout.java
...id/widget/message/RocketChatMessageAttachmentsLayout.java
+1
-1
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RocketChatAbsoluteUrl.java
View file @
8ef54741
...
...
@@ -18,7 +18,7 @@ public class RocketChatAbsoluteUrl implements AbsoluteUrl {
}
@Override
public
String
getAbsolute
(
String
url
)
{
public
String
from
(
String
url
)
{
return
url
.
startsWith
(
"/"
)
?
baseUrl
+
url
+
"?rc_uid="
+
userId
+
"&rc_token="
+
token
:
url
;
}
}
app/src/main/java/chat/rocket/android/helper/Avatar.java
View file @
8ef54741
...
...
@@ -76,7 +76,7 @@ public class Avatar {
if
(
absoluteUrl
==
null
)
{
return
avatarUrl
;
}
return
absoluteUrl
.
getAbsolute
(
avatarUrl
);
return
absoluteUrl
.
from
(
avatarUrl
);
}
catch
(
UnsupportedEncodingException
exception
)
{
RCLog
.
e
(
exception
,
"failed to get URL for user: %s"
,
username
);
return
null
;
...
...
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/AbsoluteUrl.java
View file @
8ef54741
...
...
@@ -2,5 +2,5 @@ package chat.rocket.android.widget;
public
interface
AbsoluteUrl
{
String
getAbsolute
(
String
url
);
String
from
(
String
url
);
}
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/message/RocketChatMessageAttachmentsLayout.java
View file @
8ef54741
...
...
@@ -242,7 +242,7 @@ public class RocketChatMessageAttachmentsLayout extends LinearLayout {
if
(
absoluteUrl
==
null
)
{
return
url
;
}
return
absoluteUrl
.
getAbsolute
(
url
);
return
absoluteUrl
.
from
(
url
);
}
private
void
loadImage
(
final
String
url
,
final
SimpleDraweeView
drawee
,
final
View
load
,
...
...
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