Layout fixes and Push fixes
- Layout und Kalender angepasst - Push status meldung angepasst für Android
This commit is contained in:
@@ -17,25 +17,34 @@ public sealed class NotificationNavigationService
|
||||
|
||||
public async Task FlushAsync()
|
||||
{
|
||||
if (Shell.Current is null || string.IsNullOrWhiteSpace(_pendingDate))
|
||||
if (string.IsNullOrWhiteSpace(_pendingDate))
|
||||
return;
|
||||
|
||||
var date = _pendingDate;
|
||||
var status = _pendingStatus;
|
||||
var commit = _pendingCommit;
|
||||
for (var attempt = 0; attempt < 20; attempt++)
|
||||
{
|
||||
if (Shell.Current is not null)
|
||||
{
|
||||
var date = _pendingDate!;
|
||||
var status = _pendingStatus;
|
||||
var commit = _pendingCommit;
|
||||
|
||||
_pendingDate = null;
|
||||
_pendingStatus = null;
|
||||
_pendingCommit = false;
|
||||
_pendingDate = null;
|
||||
_pendingStatus = null;
|
||||
_pendingCommit = false;
|
||||
|
||||
var route = $"{nameof(QuickEntryPage)}?date={Uri.EscapeDataString(date)}";
|
||||
var route = $"{nameof(QuickEntryPage)}?date={Uri.EscapeDataString(date)}";
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(status))
|
||||
route += $"&status={Uri.EscapeDataString(status)}";
|
||||
if (!string.IsNullOrWhiteSpace(status))
|
||||
route += $"&status={Uri.EscapeDataString(status)}";
|
||||
|
||||
if (commit)
|
||||
route += "&commit=true";
|
||||
if (commit)
|
||||
route += "&commit=true";
|
||||
|
||||
await MainThread.InvokeOnMainThreadAsync(() => Shell.Current.GoToAsync(route));
|
||||
await MainThread.InvokeOnMainThreadAsync(() => Shell.Current.GoToAsync(route));
|
||||
return;
|
||||
}
|
||||
|
||||
await Task.Delay(150);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user