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) {
|
public void fetchAvatar(Account account, final Avatar avatar, final UiCallback<Avatar> callback) {
|
||||||
final String KEY = generateFetchKey(account, avatar);
|
final String KEY = generateFetchKey(account, avatar);
|
||||||
synchronized (this.mInProgressAvatarFetches) {
|
synchronized (this.mInProgressAvatarFetches) {
|
||||||
if (this.mInProgressAvatarFetches.contains(KEY)) {
|
if (!this.mInProgressAvatarFetches.contains(KEY)) {
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
switch (avatar.origin) {
|
switch (avatar.origin) {
|
||||||
case PEP:
|
case PEP:
|
||||||
this.mInProgressAvatarFetches.add(KEY);
|
this.mInProgressAvatarFetches.add(KEY);
|
||||||
|
|
Loading…
Reference in a new issue