summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-10-11 21:29:41 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-10-11 21:29:41 (GMT)
commit9f167ffd1bb9608255ae76b2c6b5353a956073dd (patch)
tree366c33fd1cc3c72dc0d9238cba34adf5fd29572c /Xamarin.Forms.Platform.iOS
parentec09d75f5815ac11543ca81b6fed433ace5cbb10 (diff)
downloadxamarin-forms-9f167ffd1bb9608255ae76b2c6b5353a956073dd.zip
xamarin-forms-9f167ffd1bb9608255ae76b2c6b5353a956073dd.tar.gz
xamarin-forms-9f167ffd1bb9608255ae76b2c6b5353a956073dd.tar.bz2
Clear cached CultureInfo and TimeZoneInfo on app resume (#423)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/FormsApplicationDelegate.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/FormsApplicationDelegate.cs b/Xamarin.Forms.Platform.iOS/FormsApplicationDelegate.cs
index a14bd7e..0aacfd0 100644
--- a/Xamarin.Forms.Platform.iOS/FormsApplicationDelegate.cs
+++ b/Xamarin.Forms.Platform.iOS/FormsApplicationDelegate.cs
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel;
+using System.Globalization;
using CoreSpotlight;
using Foundation;
using UIKit;
@@ -54,6 +55,8 @@ namespace Xamarin.Forms.Platform.iOS
if (_application != null && _isSuspended)
{
_isSuspended = false;
+ CultureInfo.CurrentCulture.ClearCachedData();
+ TimeZoneInfo.ClearCachedData();
_application.SendResume();
}
}