1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-26 16:57:59 +01:00

Fix for EMM system configuration for mobile (#1434)

This commit is contained in:
Chad Scharf 2021-08-11 10:36:36 -04:00 committed by GitHub
parent f79ff3fd63
commit 7f7b673b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -149,7 +149,9 @@ namespace Bit.Droid
}
catch { }
}
var setRestrictions = AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this);
AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this)
.GetAwaiter()
.GetResult();
}
protected override void OnNewIntent(Intent intent)

View File

@ -381,7 +381,7 @@ namespace Bit.App.Utilities
public static async Task SetPreconfiguredSettingsAsync(IDictionary<string, string> configSettings)
{
if (configSettings?.Any() ?? true)
if (configSettings?.Any() != true)
{
return;
}
@ -403,7 +403,7 @@ namespace Bit.App.Utilities
Icons = environmentService.IconsUrl
});
}
break;
return;
default:
break;
}