diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-09 09:44:19 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-09 09:44:19 +0200 |
commit | 0bab1a4613ca91b89266b105ee800b3501dcaa01 (patch) | |
tree | 3fde410ba690b7a69c8f8e4ce5be931c7aa2459b /src/eu/siacs | |
parent | 96a41b5b5126f452e60cc3a8d1efd270a624a590 (diff) |
bug fix for 'back to default'
Diffstat (limited to 'src/eu/siacs')
-rw-r--r-- | src/eu/siacs/conversations/ui/PublishProfilePictureActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/ui/PublishProfilePictureActivity.java b/src/eu/siacs/conversations/ui/PublishProfilePictureActivity.java index e42a22167..e0e0826af 100644 --- a/src/eu/siacs/conversations/ui/PublishProfilePictureActivity.java +++ b/src/eu/siacs/conversations/ui/PublishProfilePictureActivity.java @@ -67,7 +67,7 @@ public class PublishProfilePictureActivity extends XmppActivity { }; private OnLongClickListener backToDefaultListener = new OnLongClickListener() { - + @Override public boolean onLongClick(View v) { avatarUri = defaultUri; @@ -152,6 +152,8 @@ public class PublishProfilePictureActivity extends XmppActivity { if (this.account.getAvatar() != null) { this.avatar.setImageBitmap(this.account.getImage( getApplicationContext(), 384)); + this.avatar + .setOnLongClickListener(this.backToDefaultListener); } else { if (this.defaultUri != null) { this.avatarUri = this.defaultUri; @@ -180,7 +182,7 @@ public class PublishProfilePictureActivity extends XmppActivity { this.avatar.setOnLongClickListener(null); } else { this.secondaryHint.setVisibility(View.VISIBLE); - this.avatar.setOnLongClickListener(this.backToDefaultListener ); + this.avatar.setOnLongClickListener(this.backToDefaultListener); } } |