From 79caae65bfb98d973aacb06bd93dac2f08ffdcd0 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 19 Sep 2016 18:56:33 +0200 Subject: [PATCH] fix for #272 - check if more than one key are present in bundle in receive file --- .../android/ui/activity/ReceiveExternalFilesActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java b/src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java index c7ac1684a3..a009563bb4 100644 --- a/src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java +++ b/src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java @@ -544,8 +544,8 @@ public class ReceiveExternalFilesActivity extends FileActivity return (mStreamsToUpload != null && mStreamsToUpload.get(0) != null || uploadTextSnippet()); } - private boolean uploadTextSnippet(){ - return getIntent().getStringExtra(Intent.EXTRA_TEXT) != null; + private boolean uploadTextSnippet() { + return getIntent().getStringExtra(Intent.EXTRA_TEXT) != null && getIntent().getExtras().keySet().size() == 1; } @SuppressLint("NewApi")