clean up and style improving
This commit is contained in:
parent
56ec1d9ed9
commit
55c2c666c0
@ -52,7 +52,7 @@ namespace eShopOnContainers
|
|||||||
|
|
||||||
if (Settings.AllowGpsLocation && !Settings.UseFakeLocation)
|
if (Settings.AllowGpsLocation && !Settings.UseFakeLocation)
|
||||||
{
|
{
|
||||||
await GetRealLocation();
|
await GetGpsLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Settings.UseMocks && !string.IsNullOrEmpty(Settings.UserId))
|
if (!Settings.UseMocks && !string.IsNullOrEmpty(Settings.UserId))
|
||||||
@ -68,7 +68,7 @@ namespace eShopOnContainers
|
|||||||
// Handle when your app sleeps
|
// Handle when your app sleeps
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task GetRealLocation()
|
private async Task GetGpsLocation()
|
||||||
{
|
{
|
||||||
var locator = CrossGeolocator.Current;
|
var locator = CrossGeolocator.Current;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user