Bugfixes
This commit is contained in:
@@ -7,9 +7,9 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Grid Background="White">
|
<Grid>
|
||||||
<Canvas>
|
<Canvas>
|
||||||
<Image x:Name="extendedSplashImage" Source="Assets/SplashScreen.png" VerticalAlignment="Center"/>
|
<Image x:Name="extendedSplashImage" Source="/Assets/SplashScreen.png" VerticalAlignment="Center"/>
|
||||||
</Canvas>
|
</Canvas>
|
||||||
|
|
||||||
<RelativePanel Name="splashProgress" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
<RelativePanel Name="splashProgress" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||||
|
|||||||
@@ -90,6 +90,8 @@ namespace NavCityBreda.Model
|
|||||||
geo.PositionChanged += Geo_PositionChanged;
|
geo.PositionChanged += Geo_PositionChanged;
|
||||||
geo.StatusChanged += Geo_StatusChanged;
|
geo.StatusChanged += Geo_StatusChanged;
|
||||||
|
|
||||||
|
_position = await geo.GetGeopositionAsync();
|
||||||
|
|
||||||
_status = PositionStatus.Initializing;
|
_status = PositionStatus.Initializing;
|
||||||
|
|
||||||
return "Connected";
|
return "Connected";
|
||||||
@@ -110,11 +112,13 @@ namespace NavCityBreda.Model
|
|||||||
|
|
||||||
private void Geo_StatusChanged(Geolocator sender, StatusChangedEventArgs args)
|
private void Geo_StatusChanged(Geolocator sender, StatusChangedEventArgs args)
|
||||||
{
|
{
|
||||||
if(args.Status == PositionStatus.Disabled)
|
if (args.Status == PositionStatus.Disabled)
|
||||||
{
|
{
|
||||||
geo = null;
|
|
||||||
Connected = false;
|
Connected = false;
|
||||||
|
_position = null;
|
||||||
}
|
}
|
||||||
|
else if (!(bool)Connected)
|
||||||
|
Connected = true;
|
||||||
|
|
||||||
UpdateStatus(args.Status);
|
UpdateStatus(args.Status);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<uap:VisualElements DisplayName="Nav City Breda" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Tourist navigation app for the cirty Breda." BackgroundColor="transparent">
|
<uap:VisualElements DisplayName="Nav City Breda" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Tourist navigation app for the cirty Breda." BackgroundColor="transparent">
|
||||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" ShortName="ags_logo">
|
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" ShortName="ags_logo">
|
||||||
</uap:DefaultTile>
|
</uap:DefaultTile>
|
||||||
<uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="white" />
|
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||||
<uap:InitialRotationPreference>
|
<uap:InitialRotationPreference>
|
||||||
<uap:Rotation Preference="portrait" />
|
<uap:Rotation Preference="portrait" />
|
||||||
</uap:InitialRotationPreference>
|
</uap:InitialRotationPreference>
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ namespace NavCityBreda.ViewModels
|
|||||||
switch(App.Geo.Status)
|
switch(App.Geo.Status)
|
||||||
{
|
{
|
||||||
case PositionStatus.Disabled:
|
case PositionStatus.Disabled:
|
||||||
|
NotifyPropertyChanged(Source);
|
||||||
|
NotifyPropertyChanged(Accuracy);
|
||||||
return Util.Loader.GetString("Disabled");
|
return Util.Loader.GetString("Disabled");
|
||||||
case PositionStatus.Initializing:
|
case PositionStatus.Initializing:
|
||||||
return Util.Loader.GetString("Initializing");
|
return Util.Loader.GetString("Initializing");
|
||||||
|
|||||||
Reference in New Issue
Block a user