From 9c59a731136293d87c72b69de055b47836c6b152 Mon Sep 17 00:00:00 2001 From: Claudiu Farcas Date: Wed, 6 Apr 2011 08:49:07 +0300 Subject: [PATCH] fix list pick issue clear GPS location on tombstoning resume --- main/MyFriendsAround.WP7/App.xaml.cs | 4 ++++ main/MyFriendsAround.WP7/Views/MainPage.xaml | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/main/MyFriendsAround.WP7/App.xaml.cs b/main/MyFriendsAround.WP7/App.xaml.cs index 5421dd2..4920e7c 100644 --- a/main/MyFriendsAround.WP7/App.xaml.cs +++ b/main/MyFriendsAround.WP7/App.xaml.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Device.Location; using System.IO; using System.Linq; using System.Net; @@ -16,6 +17,7 @@ using System.Windows.Shapes; using Microsoft.Phone; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; +using MyFriendsAround.WP7.Model; using MyFriendsAround.WP7.ViewModel; using MyFriendsAround.WP7.Utils; using GalaSoft.MvvmLight.Threading; @@ -102,6 +104,8 @@ namespace MyFriendsAround.WP7 if (mainModel != null) { mainModel.IsBusy = false; + mainModel.GpsLocation = Location.Unknown; + mainModel.GpsStatus = GeoPositionStatus.NoData; Container.Instance.RegisterInstance(mainModel, Constants.VM_MAIN); } else diff --git a/main/MyFriendsAround.WP7/Views/MainPage.xaml b/main/MyFriendsAround.WP7/Views/MainPage.xaml index 4f7dc38..8ee0254 100644 --- a/main/MyFriendsAround.WP7/Views/MainPage.xaml +++ b/main/MyFriendsAround.WP7/Views/MainPage.xaml @@ -211,11 +211,6 @@ Source="{Binding SelectedFriend, Path=SelectedFriend.PinImageUrl, Converter={StaticResource imageCacheConverter}}" Margin="1" Stretch="Fill"> - - - - - + + + + + + +