mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 05:47:28 +02:00
Version 3.0.366
This commit is contained in:
parent
0eb7362cb8
commit
24cdfbb0ca
84 changed files with 900 additions and 393 deletions
|
@ -50,7 +50,6 @@ namespace TINK.ViewModel.Map
|
|||
/// </summary>
|
||||
private Exception m_oException;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Service to query/ manage permissions (location) of the app.
|
||||
/// </summary>
|
||||
|
@ -483,10 +482,23 @@ namespace TINK.ViewModel.Map
|
|||
Log.ForContext<MapPageViewModel>().Verbose("Location permissions: {0}.", status);
|
||||
}
|
||||
|
||||
private bool isLocationPermissionGranted = false;
|
||||
/// <summary>
|
||||
/// Exposes IsLocationPermissionGranted.
|
||||
/// </summary>
|
||||
public bool IsLocationPermissionGranted{ get; set;}
|
||||
public bool IsLocationPermissionGranted
|
||||
{
|
||||
get => isLocationPermissionGranted;
|
||||
set
|
||||
{
|
||||
if (value == isLocationPermissionGranted)
|
||||
return;
|
||||
|
||||
Log.ForContext<MapPageViewModel>().Debug($"Switch value of {nameof(isLocationPermissionGranted)} to {value}.");
|
||||
isLocationPermissionGranted = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsLocationPermissionGranted)));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when the auth cookie is not defined.
|
||||
|
@ -655,6 +667,9 @@ namespace TINK.ViewModel.Map
|
|||
Log.ForContext<MapPageViewModel>().Error("Getting bikes and stations in polling context failed with exception {Exception}.", exception);
|
||||
}
|
||||
|
||||
// Get and expose status of location permission
|
||||
GetLocationPermissionStatus();
|
||||
|
||||
// Load MyBikes Count -> MyBikes Icon/Button
|
||||
GetMyBikesCount(resultStationsAndBikes.Response.BikesOccupied);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue