fixed showing QR code on long press

This commit is contained in:
Daniel Gultsch 2018-02-25 08:33:04 +01:00
parent e11fafcf52
commit 759498ac3a
2 changed files with 5 additions and 2 deletions

View File

@ -847,7 +847,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
}
}
} else {
activity.showQrCode();
activity.showQrCode(conversation.getAccount().getShareableUri());
}
});
messageListAdapter.setOnQuoteListener(this::quoteText);

View File

@ -901,7 +901,10 @@ public abstract class XmppActivity extends AppCompatActivity {
}
protected void showQrCode() {
final String uri = getShareableUri();
showQrCode(getShareableUri());
}
protected void showQrCode(final String uri) {
if (uri == null || uri.isEmpty()) {
return;
}