mirror of
https://github.com/moparisthebest/Conversations
synced 2025-01-31 23:20:08 -05:00
minor code cleanup
This commit is contained in:
parent
7ff890e513
commit
7223b5b274
@ -2456,9 +2456,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||
public void fetchAvatar(Account account, final Avatar avatar, final UiCallback<Avatar> callback) {
|
||||
final String KEY = generateFetchKey(account, avatar);
|
||||
synchronized (this.mInProgressAvatarFetches) {
|
||||
if (this.mInProgressAvatarFetches.contains(KEY)) {
|
||||
return;
|
||||
} else {
|
||||
if (!this.mInProgressAvatarFetches.contains(KEY)) {
|
||||
switch (avatar.origin) {
|
||||
case PEP:
|
||||
this.mInProgressAvatarFetches.add(KEY);
|
||||
|
Loading…
Reference in New Issue
Block a user