diff options
author | Daniel Hindrikes <daniel@hindrikes.se> | 2016-05-23 19:49:15 +0200 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-05-23 10:49:15 -0700 |
commit | 4cbe7e61e51198455bb18266ebbcb58ff23916c7 (patch) | |
tree | 29b5d092f0d6e6291f41277779b607009234f270 /Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs | |
parent | 594d0e8d84a55788f82847a514c62b622273a783 (diff) | |
download | xamarin-forms-4cbe7e61e51198455bb18266ebbcb58ff23916c7.tar.gz xamarin-forms-4cbe7e61e51198455bb18266ebbcb58ff23916c7.tar.bz2 xamarin-forms-4cbe7e61e51198455bb18266ebbcb58ff23916c7.zip |
ixed bug with app resume for windows phone silverlight. Bug 41076 in bugzilla (#184)
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs b/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs index ac6decb6..3fb3ddc0 100644 --- a/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs +++ b/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs @@ -47,18 +47,18 @@ namespace Xamarin.Forms.Platform.WinPhone } // when app gets tombstoned, user press back past first page - void OnClosing(object sender, ClosingEventArgs e) + async void OnClosing(object sender, ClosingEventArgs e) { // populate isolated storage. //SerializePropertyStore (); - _application.SendSleepAsync().Wait(); + await _application.SendSleepAsync(); } - void OnDeactivated(object sender, DeactivatedEventArgs e) + async void OnDeactivated(object sender, DeactivatedEventArgs e) { // populate state dictionaries, properties //SerializePropertyStore (); - _application.SendSleepAsync().Wait(); + await _application.SendSleepAsync(); } void OnLaunching(object sender, LaunchingEventArgs e) |