diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/WindowsDeviceInfo.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/WindowsDeviceInfo.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/WindowsDeviceInfo.cs b/Xamarin.Forms.Platform.WinRT/WindowsDeviceInfo.cs index f3d6d100..235fe2db 100644 --- a/Xamarin.Forms.Platform.WinRT/WindowsDeviceInfo.cs +++ b/Xamarin.Forms.Platform.WinRT/WindowsDeviceInfo.cs @@ -77,9 +77,13 @@ namespace Xamarin.Forms.Platform.WinRT if (_isDisposed) return; + if (disposing) + { + _information.OrientationChanged -= OnOrientationChanged; + _information = null; + } + _isDisposed = true; - _information.OrientationChanged -= OnOrientationChanged; - _information = null; base.Dispose(disposing); } |