synchronized around cache clear in avatar service
This commit is contained in:
parent
c058594ff5
commit
283d5058e5
|
@ -58,9 +58,11 @@ public class AvatarService {
|
|||
}
|
||||
|
||||
public void clear(Contact contact) {
|
||||
for (Integer size : sizes) {
|
||||
this.mXmppConnectionService.getBitmapCache().remove(
|
||||
key(contact, size));
|
||||
synchronized (this.sizes) {
|
||||
for (Integer size : sizes) {
|
||||
this.mXmppConnectionService.getBitmapCache().remove(
|
||||
key(contact, size));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,9 +152,11 @@ public class AvatarService {
|
|||
}
|
||||
|
||||
public void clear(MucOptions options) {
|
||||
for (Integer size : sizes) {
|
||||
this.mXmppConnectionService.getBitmapCache().remove(
|
||||
key(options, size));
|
||||
synchronized (this.sizes) {
|
||||
for (Integer size : sizes) {
|
||||
this.mXmppConnectionService.getBitmapCache().remove(
|
||||
key(options, size));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -182,9 +186,11 @@ public class AvatarService {
|
|||
}
|
||||
|
||||
public void clear(Account account) {
|
||||
for (Integer size : sizes) {
|
||||
this.mXmppConnectionService.getBitmapCache().remove(
|
||||
key(account, size));
|
||||
synchronized (this.sizes) {
|
||||
for (Integer size : sizes) {
|
||||
this.mXmppConnectionService.getBitmapCache().remove(
|
||||
key(account, size));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</menu>
|
Loading…
Reference in New Issue