History log of /packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
afb10d038c70c0a8646f0315836c49c704765ff9 12-Oct-2013 Tony Mantler <nicoya@google.com> Clean up usage of Account.name when accessing account/folder prefs

b/11185963

Change-Id: Ifbf18db787a94c8f6b9cf6e890322c87f5d5dded
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
b90a813b107d8f43236e2d3fe12f299d94c82ce8 03-Oct-2013 Tony Mantler <nicoya@google.com> Change notification code to key off android.accounts.Account

b/11023774

Change-Id: Ia65ca20b973c18ee88e699e56624fe578591ebea
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c80b19804af30fca089882f85041e609e6a84111 28-Aug-2013 Andy Huang <ath@google.com> analytics: avoid account_type switch on notification creation

It's nice to have notifications tagged by account_type, but because this
is a user-scope variable, it globally switches all of the user's future
UI actions to this account_type until next activity launch. That's bad.

The upshot is that currently, it's invalid to try to segment
notification and attachment-sync events by account_type. All other UI
actions are valid to segment this way.

Change-Id: Ib6c317939a8db4022cc27f64b2580469a5984a66
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
12fb02b96c7394172ad9798a9de25eeb7611aafd 27-Aug-2013 Paul Westbrook <pwestbro@google.com> Prevent NPE

Bug: 9991666
Change-Id: Ibef6ce6abdde1728dd334b2bf12d89779cb4baff
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
4fe0af81874976a1995191321e35c844b2229811 21-Aug-2013 Andy Huang <ath@google.com> log notifications

Also fix a long-standing issue that caused notification intents to never
get updated during development (we weren't setting FLAG_UPDATE_CURRENT).
We can remove the version tag from the intent data URI later.

Log reply/reply-all setting.

Bug: 9861033
Change-Id: I49b2ab529de4167d1c8b42a8b053bcc2b9f65a23
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
1bdbfefe4b144c7b031a1d9242a0fa061a0ae6b5 02-Aug-2013 Scott Kennedy <skennedy@google.com> Change the package name on our HTML parser

So it doesn't conflict in IDE builds, with the one imported from
another project.

Change-Id: I6b7d6d6fef9914860329bb8ef02796e98ad15c40
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
32fc8e41dde99760eb769a0d0c17f6c485a0b5cf 30-Jul-2013 Scott Kennedy <skennedy@google.com> Add more logs for NotificationUtils

Bug: 10039955
Change-Id: I1dd719b48f8fd2569a83a5f6906f539dfcc2fcb1
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
2f97af9484bb3a226856c441943c5b0f32910155 30-Jul-2013 Scott Kennedy <skennedy@google.com> Remove some unneccessary log info

The log tag is "NotifUtils", so there's no reason to include
"NotificationUtils" in the log message.

Change-Id: Ibb38a4002a9409f12e4693e9e1e65c358473a7d4
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
259df5b9e11908c8ef7c91483924891dd96b3c27 11-Jul-2013 Scott Kennedy <skennedy@google.com> Add a new FolderUri

This will allow us to add query parameters such that Uris will still
appear to be equal, regardless of differences in the parameters.

Bug: 9780067
Change-Id: Iafe39763b3ee448cf02536df89caa736500dfdaf
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c7d754703a0b5c2ca4b4dc9675d733881f85b746 09-Jul-2013 Scott Kennedy <skennedy@google.com> Change NotificationUtils log tag for easier filtering

Change-Id: Ie938a6e5aeaf2463789c5fdd87eea64c12450232
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
8173cf41d2acf48c7b45ae3e7868fc391aae0359 01-Jul-2013 Andrew Sapperstein <asapperstein@google.com> More bidi notification fixes.

Change-Id: Id0934adf6a41025ad54131de874fc344e5689086
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
fe23512c2be21d7c87677f5263078021002d89cb 28-Jun-2013 Scott Kennedy <skennedy@google.com> Change how we get a LetterTileProvider for notifications

Because conflicts.

Change-Id: I82966a309f8b3a92ebd1e35f56af6ddaa966f3f3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c94c80c8b8c92c019f19f2e315dea1ff03ad573f 27-Jun-2013 Scott Kennedy <skennedy@google.com> Use letter tiles in notifications

For notifications where we would display a contact photo if it
existed, we will now show a letter tile if we can make one.

Bug: 9597536
Change-Id: Idb060d2c055074ff930154c12ddfff7d960dbf75
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
4046d0695e102368201bb2f3a268a4f85c8bc4db 27-Jun-2013 Scott Kennedy <skennedy@google.com> Some cleanup

Change-Id: Ic81e40d2b85031cb9f5f17d34bd960d5984fe21e
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
f58109699c207a2eaeca38d557d9b9a7e7664dec 27-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Render bidi text in inbox notifications correctly.

Mixed language text where the directions of the languages
differed could display errors because they were not
unicode wrapped. Now they are. Fixes b/8841323.

Change-Id: Ic55efeeacde2a7e4a9b78f1399324806e4310190
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
148df389bd0dbc631d31d5a59858ece2e30409d3 25-Jun-2013 Scott Kennedy <skennedy@google.com> Remove an unnecessary line

Since the notification content title is the same as the big content
title, there's no point in setting it separately.

Change-Id: Ia2f7e24a2f333248ea46059dd396b298504aba50
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
3a7b45bd1a03ce6158d766ac8837f1c8cb3758e1 19-Jun-2013 Yu Ping Hu <yph@google.com> Handle a null cursor returned by provider.

Bug: 9250557
Change-Id: Ie401180d7daf42f2d773ccc4cff7bba7349b181d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
bd8acad098abbf074184aa1273d269f7f7a54b37 29-May-2013 Scott Kennedy <skennedy@google.com> Only create one intent per notification

Change-Id: I0046017e6da2941b40ebd2762b5188a62fadef34
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c56b233013cf107c702ef9f61305282670ad804a 24-May-2013 Scott Kennedy <skennedy@google.com> Don't print <style> contents in plaintext

Remove the previous fix for this from NotificationUtils, since it's
now done in HtmlTree, which fixes it everywhere.

Bug: 8576281
Change-Id: I1863ce76b67d4b4d01e0c3e6f0516e7c78a8ba3f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
390cab939304705cc8adeb8e4810abf904fec22f 23-May-2013 Scott Kennedy <skennedy@google.com> Show non-ascii characters in notification sender name

Bug: 8498763
Change-Id: Id3e71287af161b099a5e1ba63f6a7a35381d31bc
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
7f8aed6bea276d6069abbfbdb25263a9ec92a684 23-May-2013 Scott Kennedy <skennedy@google.com> Fix up some notification cancelling code

Add a method to cancel all notifications for one account, and ensure
that cancelling Folder notifications actually cancels the
notifications.

Bug: 7935576
Change-Id: I5d35665efdfe98a2a63692a00b2e5567d6d482a4
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
5b582622b8e98cd4d47274df8a7a0b56d8f595f8 23-May-2013 Scott Kennedy <skennedy@google.com> Remove some unused code

Change-Id: I5af4c4e7d8207ebc5418e9f9f3339554146836be
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
2d27a912b5b646e67c28af8b81ff9c026f4c44ad 15-May-2013 Alice Yang <alice@google.com> Fix some tests.

Bug 8961077, 8961080

Change-Id: Ie0a7c64adf6712304918ef415ea87c80eef7b57e
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
e8a7c4c94cc2e391c6d2b5ade74ca842bc6b3a84 09-May-2013 Scott Kennedy <skennedy@google.com> Remove more logspam

Account#toString() prints enough information that we exceed the max
length for a line in logcat here.

Change-Id: I7b7dc4a0f19a706a43a498f15db2083818fe50e0
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
13a732747e1cf835b04211fad09b722accf877d5 09-May-2013 Scott Kennedy <skennedy@google.com> Make it easier to search logs for notifications

Bug: 8824046
Change-Id: I3c0e10c252d9eec11e5bca0f3e812707abf7cbb0
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
4162f83633a001cf03ff7bbb5e1abae92392049b 07-May-2013 Scott Kennedy <skennedy@google.com> More notification code logging

Bug: 8824046
Change-Id: I9a666eac951e929aa746e96f3f049ad45ff055f3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
2638b48e063e469d48daf6a7c0d3a9b2d56d7bea 07-May-2013 Scott Kennedy <skennedy@google.com> Add more logging for notifications

Bug: 8824046
Change-Id: I048e902b9cf0070d1589d423a129718ca35f711d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
26b29ef558cce109c51584081c52781760a02dd9 29-Apr-2013 Scott Kennedy <skennedy@google.com> Resend notifications after an inbox type change

Bug: 8737525
Change-Id: I24b5c5a745cb94a3a93c423b7395cad8eed6d665
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c8bc5d10567d917c73e8fd286ea19a4c7f076d89 25-Apr-2013 Scott Kennedy <skennedy@google.com> Add some TODOs

Change-Id: Ifef6e237b51f64830b971c9f0c4b73136faf155d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
ddd17bc2963b67ba07dfd1e2d9b1f17abf8c8e4a 22-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Resend notifications for undone account-folder.

Fixes b/7923968. Instead of resending all notifications
when the undo bar disappears, we only resend notifications
for the account-folder pair that had the undone notification.
This means that when the undo notification disappears,
no additional notifications will go out.

Change-Id: I55155e9abfbe34cc7c0fc4f0e6448a70e921413b
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
93486c0916e222acfffb1ec8f2d68760c5209614 17-Apr-2013 Scott Kennedy <skennedy@google.com> Don't cancel notifications for unseen messages

Add a ton of logging for all NotificationManager#cancel calls.

Bug: 8596632
Change-Id: I07aea5d91fadabac29b1bdefea76b353b7b57283
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
48cfe4613549cafdf36e2a524afba730522bf291 10-Apr-2013 Scott Kennedy <skennedy@google.com> Parse Folder out of intent

If we had a full Folder object as an extra, but no URI, we opened
the account's default inbox, instead of the desired folder.

Bug: 8526579
Change-Id: I64d1bdecea11e39fde5657910a3b3b2e22cd411a
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
ff8553f20964f4c31b0c503a9e1daff6ae08a9c7 06-Apr-2013 Scott Kennedy <skennedy@google.com> Cleanup

Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
3507af9240a2401a4f5b855fd01c52ec6d1e2588 31-Mar-2013 Paul Westbrook <pwestbro@google.com> prevent NPE

If the from string is null, prevent a NPE, and log

Bug: 8396407
Change-Id: I1eb811f47c8407062277f2e08760871abb09615b
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
01c196a99604d9fbd5e3903e2e9140799ab8467b 25-Mar-2013 Scott Kennedy <skennedy@google.com> Strip out <style> tags when we create notification text

Bug: 8466652
Change-Id: I683d8ad26285164e250e553dcdf82baafecae24b
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
0be9243458fc713bc34b3ab76bfb0529f7e67871 23-Mar-2013 Andy Huang <ath@google.com> small fixes to play better with Gmail's conversation cursor logic

Prevent NotificationUtils's unseen count checking from affecting any
active network cursor. This was stealing cursor focus away from a
visible live label, causing the list to refresh and go blank (due to a
missing spinner in b/8457387).

Make sure that the ConversationCursor's pre-caching disables network
access before it even tries to move to the first row. This was
unnecessarily causing fetcher thread logic to run (although no fetcher
thread was made).

Bug: 8459867
Change-Id: Id4e6a0529d5e888ef5b843816101caa7ae85f984
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
cde6eb0eb380f6212b7091d9381b3fec5006f6a8 22-Mar-2013 Scott Kennedy <skennedy@google.com> Don't show an "Archive" option for non-Gmail accounts

Bug: 8396717
Change-Id: I2caf21b61dc79583d28fdb252a62f5d2b9009f26
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
b18d75ad0651b8806773d2b79da35dc725390edb 13-Mar-2013 Yu Ping Hu <yph@google.com> Fix NPE: if from field is null, use "" instead.

BUG: 8370294
Change-Id: I7933ccebe7f9ef43c9790c66934b682fbdcdc7b8
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
92b21746be07f31fdbe2aee510f9fcd8726a9cb3 12-Mar-2013 Paul Westbrook <pwestbro@google.com> Prevent NPE

Email's code can create a notification if the email message hasn't
finished syncing, and the message cursor will not be populated.

Bug: 8361360
Change-Id: I0511a2e7f099c53079cb1e61427387cbda5982e4
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
ffbf86fc9f7ab851719829135caa2cb7780c5c3f 08-Mar-2013 Scott Kennedy <skennedy@google.com> Use the label in the query for unseen messages

Gmail needs to know what the current label is in order for it to
determine if a message is seen.

Bug: 8341881
Change-Id: I60694b65e0c3f46169b2cb173d8609de450b550d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
b39aaf53a555c1046ef31b3fecf15d086acca013 07-Mar-2013 Scott Kennedy <skennedy@google.com> Make widgets work again

We can't send Folder parcelables to RemoteViews, so let's just send
what we need: two URIs and a String.

Bug: 8330949
Change-Id: I67bf7668d5eeef3f3b2e6225cf8697a4c5533f16
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
70e01f5d5ad4cc3fd36cce00ae3f15a642a5ab0f 08-Mar-2013 Scott Kennedy <skennedy@google.com> Merge "Add a version code to all Intent URIs used by notifications" into jb-ub-mail-ur9
5e7e88b9f5ac1f239753e13ffb3ee4b249722c9a 08-Mar-2013 Scott Kennedy <skennedy@google.com> Always display the message text in expanded notifications

Bug: 8338716
Change-Id: Id8a1afbb55bf4ab59665fae83e556886c2147084
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
09400efa442422299acf21abe20e3470f9d965ab 07-Mar-2013 Scott Kennedy <skennedy@google.com> Add a version code to all Intent URIs used by notifications

Because the Parcel format changed for Folder, and PendingIntents get
reused, the unparcelling would crash after an upgrade of the app,
until the device is rebooted.

By appending ?appVersion=123 to the URI, we can ensure none of these
are reused by a different version of the app.

Bug: 8324950
Change-Id: Ic616f2d57aa5ef5276bf44f9b9d05bbe44c2c011
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
61bd0e84a3b0545a722bbfe931233b47afdf52e2 11-Dec-2012 Scott Kennedy <skennedy@google.com> Preliminary sectioned inbox support

Add basic support for sectioned inbox. This does not include the
teaser view or other less important UI features.

Bug: 7685676
Change-Id: I2cba26dc4acc1021f5b8ab0ca81d4e0a65f744a8
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
dab8a94a939988e99597845e89cfe3fd1da0ab88 22-Feb-2013 Scott Kennedy <skennedy@google.com> Ensure undo notification is removed

If you archive a conversation through a notification action, then
launch the app, it clears the ^^unseen- label from the conversation.
As a result, if you then undo the action through the notification,
the undo notification remains in place, because we can't display the
original notification (as there are no longer any unseen messages).
Instead, we will explicitly cancel any notifications that should no
longer be around.

UR9 version of I634e8eeab5997b470f5f146e7269c2c923c9e5a9

Bug: 8250119
Change-Id: Id466166d2b67ce90241cfc2cd51fb65cfc26552f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
d5edd2d02649dffb40065fdb6a16acf91552b800 05-Dec-2012 Scott Kennedy <skennedy@google.com> Move notifications to UnifiedEmail

This involves redoing the persistence model, to split general,
account, and folder settings into separate SharedPreference stores.

It also requires some preferences to be moved into UnifiedEmail.

Depends on I71802444add85dc01f6645906a629ff80b964222 (UnifiedGmail)
Depends on Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2 (Email)

Change-Id: Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
36bbcaeff2a6e57189e4f4818e0ccdf6317ce836 25-Apr-2012 Mindy Pereira <mindyp@google.com> Revert "new notif"

This reverts commit c35ca0c3f57ccc4da2bcc1dd72fbb5c9467b9a3c
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
d48a6fa73d91006ed9de336119d82978e08cc37f 25-Apr-2012 Mindy Pereira <mindyp@google.com> Revert "Fixing build."

This reverts commit 500b3a649c7496c0d846ca7e4f346bc7fec9deb3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
500b3a649c7496c0d846ca7e4f346bc7fec9deb3 25-Apr-2012 Mindy Pereira <mindyp@google.com> Fixing build.

Is tungsten building against ics?

Change-Id: I44b958c44bdb94ffa11f19151d367dff254de44d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c35ca0c3f57ccc4da2bcc1dd72fbb5c9467b9a3c 13-Apr-2012 Mindy Pereira <mindyp@google.com> new notif

This shows only the collapsed version and ticker, as described here:
http://android-ux.hot.corp.google.com/www/Jellybean/Gmail/Gmail_JB_Notifications.pdf?iframe=true&width=95%&height=95%

The start of work for expanded is in there, but I don't currently seem to be able
to show both at once or trigger the correct one, so will check in
with expanded turned on and fully working in the next cl.
Change-Id: I7a1de6c14d1c38e1ff205995aeedeb822b04e3fd
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java