mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 21:33:36 +00:00
check internet connection before calling server
This commit is contained in:
@@ -46,6 +46,12 @@ namespace Bit.App.Pages
|
||||
|
||||
public async Task SyncAsync()
|
||||
{
|
||||
if(Xamarin.Essentials.Connectivity.NetworkAccess == Xamarin.Essentials.NetworkAccess.None)
|
||||
{
|
||||
await _platformUtilsService.ShowDialogAsync(AppResources.InternetConnectionRequiredMessage,
|
||||
AppResources.InternetConnectionRequiredTitle);
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
await _deviceActionService.ShowLoadingAsync(AppResources.Syncing);
|
||||
|
||||
Reference in New Issue
Block a user