From 17ba33158eec3f3ce30b728ecd96a36caf0eb218 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 8 Jun 2022 07:25:23 +0200 Subject: [PATCH] Moved background service option to advanced --- .../email/FragmentOptionsNotifications.java | 3 +- .../layout/fragment_options_notifications.xml | 52 +++++++++---------- app/src/main/res/values/strings.xml | 4 +- 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java index 14adad2f49..fa368db489 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java @@ -115,7 +115,6 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared private final static String[] RESET_OPTIONS = new String[]{ "notify_newest_first", - "background_service", "notify_trash", "notify_junk", "notify_block_sender", "notify_archive", "notify_move", "notify_reply", "notify_reply_direct", "notify_flag", "notify_seen", "notify_hide", "notify_snooze", @@ -126,7 +125,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared "wearable_preview", "notify_messaging", "biometrics_notify", - "alert_once" + "background_service", "alert_once" }; @Override diff --git a/app/src/main/res/layout/fragment_options_notifications.xml b/app/src/main/res/layout/fragment_options_notifications.xml index 0997e38be7..943c230873 100644 --- a/app/src/main/res/layout/fragment_options_notifications.xml +++ b/app/src/main/res/layout/fragment_options_notifications.xml @@ -212,30 +212,6 @@ app:layout_constraintTop_toBottomOf="@id/tvNotifySeparate" app:switchPadding="12dp" /> - - - - + app:layout_constraintTop_toBottomOf="@id/swNewestFirst" /> + + + + Default channel Monitoring channel Show newest notifications first - Use background service to synchronize messages - A background service can be stopped by Android at any time, but doesn\'t require a status bar notification Show launcher icon with number of new messages Let the number of new messages match the number of notifications @@ -640,6 +638,8 @@ Use notification light Select notification sound Briefly turn on the screen for new message notifications + Use background service to synchronize messages + A background service can be stopped by Android at any time, but doesn\'t require a status bar notification MIUI notification sound workaround PGP