AquaMail Forum

English - Android => General Discussion => Topic started by: pablo on November 24, 2012, 12:07:35 am

Title: Notification precedence?
Post by: pablo 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:

Edits
Thx!
-pablo
Title: Re: Notification precedence?
Post by: Kostya Vasilyev 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.
Title: Re: Notification precedence?
Post by: pablo 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
Title: Re: Notification precedence?
Post by: Kostya Vasilyev 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
Title: Re: Notification precedence?
Post by: pablo 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