fix for #272 - check if more than one key are present in bundle in receive file

This commit is contained in:
Andy Scherzinger 2016-09-19 18:56:33 +02:00
parent 9e4400d10d
commit 79caae65bf

View file

@ -544,8 +544,8 @@ public class ReceiveExternalFilesActivity extends FileActivity
return (mStreamsToUpload != null && mStreamsToUpload.get(0) != null || uploadTextSnippet()); return (mStreamsToUpload != null && mStreamsToUpload.get(0) != null || uploadTextSnippet());
} }
private boolean uploadTextSnippet(){ private boolean uploadTextSnippet() {
return getIntent().getStringExtra(Intent.EXTRA_TEXT) != null; return getIntent().getStringExtra(Intent.EXTRA_TEXT) != null && getIntent().getExtras().keySet().size() == 1;
} }
@SuppressLint("NewApi") @SuppressLint("NewApi")