mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
Cannot make OnCreate method async or things don't execute in correct order
This commit is contained in:
@@ -43,13 +43,13 @@ namespace Bit.Android
|
||||
}
|
||||
}
|
||||
|
||||
public async override void OnCreate()
|
||||
public override void OnCreate()
|
||||
{
|
||||
base.OnCreate();
|
||||
|
||||
// workaround for app compat bug
|
||||
// ref https://forums.xamarin.com/discussion/62414/app-resuming-results-in-crash-with-formsappcompatactivity
|
||||
await Task.Delay(10);
|
||||
Task.Delay(10).Wait();
|
||||
|
||||
RegisterActivityLifecycleCallbacks(this);
|
||||
AppContext = ApplicationContext;
|
||||
|
||||
Reference in New Issue
Block a user