Author Topic: Notification precedence?  (Read 7616 times)

pablo

  • Newbie
  • *
  • Posts: 35
Notification precedence?
« on: November 24, 2012, 12:07:35 am »
Hi,

What's the purpose of the an Account's Special settings | Enable notifications?  Is it supposed to override the corresponding Global App Settings?  If so, it doesn't work that way for me.  :\

Furthermore, if I uncheck Global App Settings | Enable notifications and I uncheck an account's Special settings | Enable notifications, I still get a sound notification!  :)  Is this a bug or is it possible (highly likely!) I'm not understanding something?

I'd think the order of evaluation would be something like the following:
  • If Account Setting enabled, use its value.  Done.
  • If Global App Settings enabled, use its value.  Done.
  • If nothing is set, do nothing.

Edits
  • Fixed poor word use ... :)
  • Added the do nothing condition
Thx!
-pablo
« Last Edit: November 24, 2012, 09:30:51 pm by pablo »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Notification precedence?
« Reply #1 on: November 25, 2012, 02:54:43 am »
Pablo,

The "special settings" are those that override particular settings in a particular account.

You can have global notification setting OFF, and a per-account override ON and the notification there also ON --> will get notifications for the one account but not others.

Your observation of

"Furthermore, if I uncheck Global App Settings | Enable notifications and I uncheck an account's Special settings | Enable notifications, I still get a sound notification"

sounds like a bug, I'll check it out tomorrow.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pablo

  • Newbie
  • *
  • Posts: 35
Re: Notification precedence?
« Reply #2 on: November 26, 2012, 12:00:08 am »
Hi Kostya,

Thank you for following up ... I want to also mention that I'm running a Custom ROM (RebelROM) on my device so I don't know whether that may be related.

I also wish to say that I'm /extremely/ happy with AquaMail.  It's the first app I've paid for and given your attention to support, it's an incredible bargain!  :)

Cheers,
-pablo

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Notification precedence?
« Reply #3 on: November 26, 2012, 02:27:31 am »
Haven't tried the sounds today, but did try the "screen on" thing on two devices, and it worked without any glitches.

Here is my code, if you want to give those ROM guys still more to do:

      synchronized (MessageStatsManager.class) {
         if (gFlashWakeLock == null) {
            final PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
            gFlashWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK
                  | PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.ON_AFTER_RELEASE, TAG);
         }
      }

      gFlashWakeLock.acquire(1000); // Released automatically
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pablo

  • Newbie
  • *
  • Posts: 35
Re: Notification precedence?
« Reply #4 on: November 27, 2012, 02:31:39 am »
Hi Kostya,

Thank you for the code snippet.  I've posted it to the XDA forum as a test case.  Perhaps the developer(s) will get around to resolving the issue.

I was also provided a lead on resolving the light vs dark menu label issue.  I might try and fix it.

Cheers,
-pablo