mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 14:45:47 +03:00
fix for #272 - check if more than one key are present in bundle in receive file
This commit is contained in:
parent
9e4400d10d
commit
79caae65bf
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue