small bug fixes

This commit is contained in:
2026-10-11 22:19:34 +02:00
parent c6391a384c
commit 4af7385804
36 changed files with 1558 additions and 399 deletions
@@ -208,15 +208,19 @@ public sealed class AndroidNotificationScheduler : INotificationScheduler
var redLabel = Preferences.Default.Get(PrefRedLabel, "Rot");
var grayLabel = Preferences.Default.Get(PrefGrayLabel, "Schwarz");
var smallIcon = context.ApplicationInfo?.Icon ?? global::Android.Resource.Drawable.IcDialogInfo;
// A dedicated monochrome status icon is more reliable for Android system surfaces,
// including mirrored smartwatch notifications, than the adaptive launcher icon.
var smallIcon = global::Android.Resource.Drawable.IcDialogInfo;
var builder = new NotificationCompat.Builder(context, channelId);
builder.SetSmallIcon(smallIcon);
builder.SetContentTitle(title);
builder.SetContentText(message);
builder.SetStyle(new NotificationCompat.BigTextStyle().BigText(message));
builder.SetCategory(NotificationCompat.CategoryReminder);
builder.SetVisibility((int)NotificationCompat.VisibilityPublic);
builder.SetPriority((int)NotificationPriority.High);
builder.SetAutoCancel(true);
builder.SetOnlyAlertOnce(true);
if (openPendingIntent is not null)
builder.SetContentIntent(openPendingIntent);