mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-01 07:04:35 +02:00
Better messaging on failed to connect sync
This commit is contained in:
parent
85e381a85e
commit
eaeaf3538f
@ -122,7 +122,11 @@ class SyncPairActivity : AppCompatActivity() {
|
|||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
withContext(Dispatchers.Main) {
|
withContext(Dispatchers.Main) {
|
||||||
_layoutPairingError.visibility = View.VISIBLE
|
_layoutPairingError.visibility = View.VISIBLE
|
||||||
_textError.text = e.message
|
if(e.message == "Failed to connect") {
|
||||||
|
_textError.text = "Failed to connect.\n\nThis may be due to not being on the same network, due to firewall, or vpn.\nSync currently operates only over local direct connections."
|
||||||
|
}
|
||||||
|
else
|
||||||
|
_textError.text = e.message
|
||||||
_layoutPairing.visibility = View.GONE
|
_layoutPairing.visibility = View.GONE
|
||||||
Logger.e(TAG, "Failed to pair", e)
|
Logger.e(TAG, "Failed to pair", e)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user