mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-11 14:47:11 +00:00
Revert "Attempt to fix Samsung badge count"
This reverts commit 0c5cfa52af
.
This commit is contained in:
parent
0c5cfa52af
commit
00172380aa
1 changed files with 1 additions and 10 deletions
|
@ -679,8 +679,6 @@ class NotificationHelper {
|
||||||
boolean pro = ActivityBilling.isPro(context);
|
boolean pro = ActivityBilling.isPro(context);
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
boolean badge = prefs.getBoolean("badge", true);
|
|
||||||
boolean unseen_ignored = prefs.getBoolean("unseen_ignored", false);
|
|
||||||
boolean notify_grouping = prefs.getBoolean("notify_grouping", true);
|
boolean notify_grouping = prefs.getBoolean("notify_grouping", true);
|
||||||
boolean notify_private = prefs.getBoolean("notify_private", true);
|
boolean notify_private = prefs.getBoolean("notify_private", true);
|
||||||
boolean notify_newest_first = prefs.getBoolean("notify_newest_first", false);
|
boolean notify_newest_first = prefs.getBoolean("notify_newest_first", false);
|
||||||
|
@ -782,6 +780,7 @@ class NotificationHelper {
|
||||||
: R.drawable.baseline_mail_white_24)
|
: R.drawable.baseline_mail_white_24)
|
||||||
.setContentTitle(title)
|
.setContentTitle(title)
|
||||||
.setContentIntent(piContent)
|
.setContentIntent(piContent)
|
||||||
|
.setNumber(total_messages)
|
||||||
.setDeleteIntent(piClear)
|
.setDeleteIntent(piClear)
|
||||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||||
.setCategory(notify_summary
|
.setCategory(notify_summary
|
||||||
|
@ -789,14 +788,6 @@ class NotificationHelper {
|
||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
.setAllowSystemGeneratedContextualActions(false);
|
.setAllowSystemGeneratedContextualActions(false);
|
||||||
|
|
||||||
// https://github.com/leolin310148/ShortcutBadger/issues/266
|
|
||||||
if (badge && !unseen_ignored /* Unseen */ &&
|
|
||||||
Helper.isSamsung() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
|
||||||
EntityLog.log(context, "Notify no number" +
|
|
||||||
" badge=" + badge + " unseen_ignored=" + unseen_ignored);
|
|
||||||
else
|
|
||||||
builder.setNumber(total_messages);
|
|
||||||
|
|
||||||
if (latest != null)
|
if (latest != null)
|
||||||
builder.setWhen(latest).setShowWhen(true);
|
builder.setWhen(latest).setShowWhen(true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue