1
0
Fork 0

For #7343: Handle sharing to multiple devices (#7409)

* For #7343 Do not allow multiple share to same device

* For #7343 Check current destination before dismissing share
master
Mihai Adrian 2020-01-09 20:40:14 +02:00 committed by Sawyer Blatz
parent 718c211a86
commit 666b3d9627
2 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,9 @@ class DefaultShareController(
showFailureWithRetryOption { shareToDevicesWithRetry(shareOperation) } showFailureWithRetryOption { shareToDevicesWithRetry(shareOperation) }
ShareController.Result.DISMISSED ShareController.Result.DISMISSED
} }
dismiss(result) if (navController.currentDestination?.id == R.id.shareFragment) {
dismiss(result)
}
} }
} }

View File

@ -42,6 +42,7 @@ class AccountDeviceViewHolder(
// nothing we are offline // nothing we are offline
} }
} }
it.setOnClickListener(null)
} }
} }