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 { } catch { }
} }
var setRestrictions = AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this); AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(this)
.GetAwaiter()
.GetResult();
} }
protected override void OnNewIntent(Intent intent) 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) public static async Task SetPreconfiguredSettingsAsync(IDictionary<string, string> configSettings)
{ {
if (configSettings?.Any() ?? true) if (configSettings?.Any() != true)
{ {
return; return;
} }
@ -403,7 +403,7 @@ namespace Bit.App.Utilities
Icons = environmentService.IconsUrl Icons = environmentService.IconsUrl
}); });
} }
break; return;
default: default:
break; break;
} }