mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-04 16:25:06 -05:00
bug fix for 'back to default'
This commit is contained in:
parent
96a41b5b51
commit
0bab1a4613
@ -152,6 +152,8 @@ public class PublishProfilePictureActivity extends XmppActivity {
|
|||||||
if (this.account.getAvatar() != null) {
|
if (this.account.getAvatar() != null) {
|
||||||
this.avatar.setImageBitmap(this.account.getImage(
|
this.avatar.setImageBitmap(this.account.getImage(
|
||||||
getApplicationContext(), 384));
|
getApplicationContext(), 384));
|
||||||
|
this.avatar
|
||||||
|
.setOnLongClickListener(this.backToDefaultListener);
|
||||||
} else {
|
} else {
|
||||||
if (this.defaultUri != null) {
|
if (this.defaultUri != null) {
|
||||||
this.avatarUri = this.defaultUri;
|
this.avatarUri = this.defaultUri;
|
||||||
@ -180,7 +182,7 @@ public class PublishProfilePictureActivity extends XmppActivity {
|
|||||||
this.avatar.setOnLongClickListener(null);
|
this.avatar.setOnLongClickListener(null);
|
||||||
} else {
|
} else {
|
||||||
this.secondaryHint.setVisibility(View.VISIBLE);
|
this.secondaryHint.setVisibility(View.VISIBLE);
|
||||||
this.avatar.setOnLongClickListener(this.backToDefaultListener );
|
this.avatar.setOnLongClickListener(this.backToDefaultListener);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user