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
dfec623b
Commit
dfec623b
authored
Jan 27, 2017
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed view data chache
parent
ee2e7b5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
Avatar.java
app/src/main/java/chat/rocket/android/helper/Avatar.java
+0
-4
ViewDataCache.java
...c/main/java/chat/rocket/android/helper/ViewDataCache.java
+0
-21
No files found.
app/src/main/java/chat/rocket/android/helper/Avatar.java
View file @
dfec623b
...
...
@@ -82,10 +82,6 @@ public class Avatar {
* render avatar into RocketChatAvatar.
*/
public
void
into
(
final
RocketChatAvatar
rocketChatAvatar
)
{
if
(
ViewDataCache
.
isStored
(
username
,
rocketChatAvatar
))
{
return
;
}
final
Context
context
=
rocketChatAvatar
.
getContext
();
rocketChatAvatar
.
loadImage
(
getImageUrl
(),
getTextDrawable
(
context
));
}
...
...
app/src/main/java/chat/rocket/android/helper/ViewDataCache.java
deleted
100644 → 0
View file @
ee2e7b5d
package
chat
.
rocket
.
android
.
helper
;
import
android.view.View
;
/**
* save String to setTag.
*/
public
class
ViewDataCache
{
/**
* stores str if not stored. returns true if already stored.
*/
public
static
boolean
isStored
(
String
str
,
View
view
)
{
if
(
view
.
getTag
()
!=
null
&&
view
.
getTag
()
instanceof
String
&&
((
String
)
view
.
getTag
()).
equals
(
str
))
{
return
true
;
}
view
.
setTag
(
str
);
return
false
;
}
}
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