Merge branch 'hotfix/#209' into develop
This commit is contained in:
@@ -651,7 +651,7 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
string lat = App.LoadFromAppState<string>(Constants.GeoWatch_CurrentPosition_Lat);
|
||||
string log = App.LoadFromAppState<string>(Constants.GeoWatch_CurrentPosition_Long);
|
||||
if (lat.Equals("0") && log.Equals("0"))
|
||||
if (lat == null || log == null ||(lat.Equals("0") && log.Equals("0")))
|
||||
{
|
||||
if (Settings.AppSetting.GeoWatchEnable)
|
||||
{
|
||||
|
||||
@@ -240,6 +240,16 @@ namespace CampusAppWP8.Utility
|
||||
return geoposition;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set current positon to Zero
|
||||
/// </summary>
|
||||
public static void SetGeoPositionToZero()
|
||||
{
|
||||
string time = DateTime.Now.Ticks.ToString();
|
||||
App.SaveToAppState<string>(Constants.GeoWatch_CurrentPosition_Lat, "0");
|
||||
App.SaveToAppState<string>(Constants.GeoWatch_CurrentPosition_Long, "0");
|
||||
App.SaveToAppState<string>(Constants.GeoWatch_CurrentPosition_Time, time);
|
||||
}
|
||||
/// <summary>
|
||||
/// Method determine and store the current position of the phone
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user