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