Commit 666b3d96 authored by Mihai Adrian's avatar Mihai Adrian Committed by Sawyer Blatz
Browse files

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
parent 718c211a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -128,9 +128,11 @@ class DefaultShareController(
                showFailureWithRetryOption { shareToDevicesWithRetry(shareOperation) }
                ShareController.Result.DISMISSED
            }
            if (navController.currentDestination?.id == R.id.shareFragment) {
                dismiss(result)
            }
        }
    }

    @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
    fun showSuccess() {
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ class AccountDeviceViewHolder(
                    // nothing we are offline
                }
            }
            it.setOnClickListener(null)
        }
    }