@ -163,7 +163,7 @@ public partial class HomePage : ContentPage
var lastLatitude = Convert . ToDouble ( Preferences . Get ( "lastLat" , "0" ) ) ;
var lastLongitude = Convert . ToDouble ( Preferences . Get ( "lastLng" , "0" ) ) ;
await gmCabsDriverService . LogoutDriverApp ( token , lastLatitude , lastLongitude ) ;
//Navigation.ShowPopup(new LoginErrorAlertDialogPage());
this . ShowPopup ( new LoginErrorAlertDialogPage ( ) ) ;
}
}
@ -197,10 +197,10 @@ public partial class HomePage : ContentPage
if ( HasUnreadNotifications & & ! IsBookingAvailable )
{
//open notification page
//Device.BeginInvokeOnMainThread(() =>
//{
// Navigation.PushAsync(new NotificationsPage());
//});
Device . BeginInvokeOnMainThread ( ( ) = >
{
Navigation . PushAsync ( new NotificationsPage ( ) ) ;
} ) ;
}
else if ( ! HasUnreadNotifications & & IsBookingAvailable & & availableBookingIDs ! = null & & availableBookingIDs . Count = = 1 )
{
@ -223,7 +223,7 @@ public partial class HomePage : ContentPage
Device . BeginInvokeOnMainThread ( async ( ) = >
{
//await Shell.Current.GoToAsync( $"{nameof(BookingDetailsPage)}?{nameof(BookingDetailViewModel.BookingJson)}={bookingJson}");
await Shell . Current . GoToAsync ( $"{nameof(BookingDetailsPage)}?{nameof(BookingDetailViewModel.BookingJson)}={bookingJson}" ) ;
} ) ;
}
}