Skip to content

Commit 3595960

Browse files
committed
Intent working in only one account mode
1 parent 1713380 commit 3595960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ class FileDisplayActivity : FileActivity(), FileFragment.ContainerActivity, OnEn
16601660
private fun manageDataIntent(uri: Uri?) {
16611661
if (uri != null && AccountUtils.getAccounts(applicationContext).isEmpty()) {
16621662
showMessageInToast(getString(R.string.no_account_configured))
1663-
} else if (uri != null) {
1663+
} else if (uri != null && AccountUtils.getAccounts(applicationContext).size == 1) {
16641664
isFileDiscovered(uri).let { OCFile ->
16651665
if (OCFile != null) {
16661666
openFile(OCFile)

0 commit comments

Comments
 (0)