|
|
@ -273,10 +273,12 @@ public static class OpenIddictClientSystemIntegrationHelpers |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
#pragma warning disable CA1416
|
|
|
using var scenes = UIApplication.SharedApplication.ConnectedScenes; |
|
|
using var scenes = UIApplication.SharedApplication.ConnectedScenes; |
|
|
var scene = scenes.ToArray<UIWindowScene>().FirstOrDefault(); |
|
|
var scene = scenes.ToArray<UIWindowScene>().FirstOrDefault(); |
|
|
|
|
|
|
|
|
return scene?.Windows.FirstOrDefault(); |
|
|
return scene?.Windows.FirstOrDefault(); |
|
|
|
|
|
#pragma warning restore CA1416
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
catch (InvalidCastException) |
|
|
catch (InvalidCastException) |
|
|
@ -294,10 +296,12 @@ public static class OpenIddictClientSystemIntegrationHelpers |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
#pragma warning disable CA1416
|
|
|
using var scenes = UIApplication.SharedApplication.ConnectedScenes; |
|
|
using var scenes = UIApplication.SharedApplication.ConnectedScenes; |
|
|
var scene = scenes.ToArray<UIWindowScene>().FirstOrDefault(); |
|
|
var scene = scenes.ToArray<UIWindowScene>().FirstOrDefault(); |
|
|
|
|
|
|
|
|
return scene?.Windows; |
|
|
return scene?.Windows; |
|
|
|
|
|
#pragma warning restore CA1416
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
catch (InvalidCastException) |
|
|
catch (InvalidCastException) |
|
|
|