private async Task ShowReportCrashIfNeeded()
        {
            if (await Crashes.IsEnabledAsync() && await Crashes.HasCrashedInLastSessionAsync())
            {
                ErrorReport crashReport = await Crashes.GetLastSessionCrashReportAsync();

                Logger.Error("Detected a crash in the last session: " + crashReport.StackTrace);
                ReportLastCrashDialog dialog = new ReportLastCrashDialog(AppCenterHelper.GenerateCrashReport(crashReport));
                await UiUtils.ShowDialogAsync(dialog);
            }
        }