diff --git a/Xamarin.Essentials/DeviceDisplay/DeviceDisplay.android.cs b/Xamarin.Essentials/DeviceDisplay/DeviceDisplay.android.cs index 5a96cea52..4747ce369 100644 --- a/Xamarin.Essentials/DeviceDisplay/DeviceDisplay.android.cs +++ b/Xamarin.Essentials/DeviceDisplay/DeviceDisplay.android.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Threading.Tasks; using Android.Content; using Android.Content.Res; using Android.Provider; @@ -114,6 +115,10 @@ class Listener : OrientationEventListener internal Listener(Context context, Action handler) : base(context) => onChanged = handler; - public override void OnOrientationChanged(int orientation) => onChanged(); + public override async void OnOrientationChanged(int orientation) + { + await Task.Delay(500); + onChanged(); + } } }