diff options
author | Stefan Niedermann <info@niedermann.it> | 2022-10-02 09:46:15 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2022-10-02 09:46:15 +0300 |
commit | 859e3ccdec6365b3c99251ec075819081884dc03 (patch) | |
tree | dee941b18e9d13b7ca925ea1e6b2b64ee3c8e3af /app/src/main/java/it/niedermann/nextcloud/deck/ui | |
parent | c6ff92ef1295a71f8158468661ab5ed60d79cb45 (diff) |
Fix #1344 Crash when appending a shared text to the description of an existing card
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/sharetarget/ShareTargetActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/sharetarget/ShareTargetActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/sharetarget/ShareTargetActivity.java index 1fbea2f72..f2b30fd1d 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/sharetarget/ShareTargetActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/sharetarget/ShareTargetActivity.java @@ -164,8 +164,10 @@ public class ShareTargetActivity extends MainActivity implements SelectCardListe mainViewModel.updateCard(fullCard, new IResponseCallback<>() { @Override public void onResponse(FullCard response) { - Toast.makeText(getApplicationContext(), getString(R.string.share_success, "\"" + receivedText + "\"", "\"" + fullCard.getCard().getTitle() + "\""), Toast.LENGTH_LONG).show(); - runOnUiThread(() -> finish()); + runOnUiThread(() -> { + Toast.makeText(getApplicationContext(), getString(R.string.share_success, "\"" + receivedText + "\"", "\"" + fullCard.getCard().getTitle() + "\""), Toast.LENGTH_LONG).show(); + finish(); + }); } @Override |