History log of /packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
24cfa0778a966620112a5b2ca90b70c8ab8e40d9 16-Aug-2014 Rohan Shah <shahrk@google.com> Update Notifications Icon (UnifiedEmail)

Rest in pieces little gmail icon :(

Change-Id: I092e902d5c3008016d70e4817f57daf6998b936f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
ccec014e1f11770dd406c2421fdb48a6eccad86a 14-Aug-2014 Rohan Shah <shahrk@google.com> Add API check for L (setColor)

Change-Id: Iae4070ea149f96c19d59f12ca7525ebd7f85b127
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
87281e36245ee454d2edf396459eb7f05005ad8a 14-Aug-2014 Rohan Shah <shahrk@google.com> Fix build - broken asset

Change-Id: I2338e18944bd99a6be867c6165837fa80b25ada2
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c41edc70b7de16b7e43f77680d51846daae1fa2a 14-Aug-2014 Rohan Shah <shahrk@google.com> Update Notifications (UnifiedEmail)

Updated most of the notifications and added color for them.
Still missing a few things:
- No Big Icon BG (waiting for possible addition to frmwrk)
- Small mail icon is still there with multiple mail icon
(code's in place but I'm looking for a better sol)
- Badge (small) Icon is really small at the top of the bar
which should be fixed soon

Bug: 16987147
Change-Id: I44de8eab32250d1486805a652e8c04db89268c62
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
bf0da35d8b36e49935ca1727bc1c86ff99953c74 31-Jul-2014 James Lemieux <jplemieux@google.com> Improve failure logic for null cursors

b/16328925

Test cursor for null and throw a more descriptive exception.

Change-Id: Ic9a1baf525737728b896d1c79bf90b525e0e2859
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
fd79237327f6803675cad2a64a74411ebda854e3 30-Jul-2014 Paul Westbrook <pwestbro@google.com> Revert "Revert "Use getAccountId for AccountPreferences and FolderPreferences.""

This reverts commit ce9372d8ee7daf9b05569e98f684f5b7e14f6a04.

Change-Id: Ie5d560e4a29502078e0df15eb20d4ea7f153779a
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
ce9372d8ee7daf9b05569e98f684f5b7e14f6a04 29-Jul-2014 Régis Décamps <regisd@google.com> Revert "Use getAccountId for AccountPreferences and FolderPreferences."

Due to b/16645621 [Smoke test] Not receiving notifications when a new email arrives.

This reverts commit 8d7d0b7dda368390c04dc6fd8156cf7a6ed72d6e.

Change-Id: I3ab3aaa552a8f0c25ab369c0aceba4ec44c5a3e8
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
8d7d0b7dda368390c04dc6fd8156cf7a6ed72d6e 24-Jul-2014 Ray Chen <raychen@google.com> Use getAccountId for AccountPreferences and FolderPreferences.

Change-Id: I7dab0aa619a9372b38c2336af9ab19df1629da84
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
4b0c0127d24e387a4f49d442b63b5c60cedb6922 11-Jul-2014 Ray Chen <raychen@google.com> Delegate Account creation to builder class.

Account contructors are no longer public and clients need
to use Account.builder().buildFrom(...) instead.

Change-Id: I8f072e893b49b64d962fa7a075e5c15364c4c05f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
85003dc5fe29370cd3dfe6a2551b04284bfef2b7 24-Jun-2014 Jay Shrauner <shrauner@google.com> Fix NPE when contactIconInfo is null

Check for null contactIconInfo and use default wearable bg when
unseenCount <= 1, same as was already being done about 20 lines earlier
in the same routine for the case when unseenCount > 1.

Bug:15855456
Change-Id: I63b473eb1d409e20599346c287ddffaf132af92e
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
bbfc1432baca1a3e4517ea4edc1fb209cbe6997f 13-Jun-2014 Jay Shrauner <shrauner@google.com> NPE fix in saveNotificationMap

Change saveNotificationMap to use getUnread/getUnseen null safe APIs
like other routines in this class.

Bug:15722507
Change-Id: I52677355bf53ae962eae0c229cb1326076d2d4f3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
3ecca77461c181474162acada1d956f45d6cdbb6 18-Jun-2014 Jin Cao <jinyan@google.com> am 77b4c2c3: Minimum html support using Html class (no ol/ul)

* commit '77b4c2c31d7601665c337ce5cbc9d84fb9332be8':
Minimum html support using Html class (no ol/ul)
77b4c2c31d7601665c337ce5cbc9d84fb9332be8 20-May-2014 Jin Cao <jinyan@google.com> Minimum html support using Html class (no ol/ul)

Support basic html in ComposeActivity using Html and HtmlTree class.

- Extended HtmlTree to take in any arbitrary html -> object converter
so we can use it to convert html to spanned as well as plaintext.
- Added custom SpannedConverter to feed into HtmlTree.
- Added async task to load Utils.htmlToSpan in the background.
- Moved ComposeActivity#sendOrSaveInternal to a handler thread in
case Utils.spanToHtml takes a long time.

Note that we only support a subset of the html tags. To see the full
list of tags we currently support, refer to HtmlUtils#SpannedConverter.

Performance:
About 3x faster than using Html.fromHtml (yay!).
Performance should not be an issue for >99% of the users.

b/7406122

Change-Id: I484d7fc7d2f36c4724d9e4cb90fa1d65eadcb903
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
4e75cc92043d9d37aa3bda16ce6b0034b64ed329 13-Jun-2014 James Lemieux <jplemieux@google.com> Add support for public notifications

Public notifications are redacted forms of private notifications that can
safely be displayed above a user's lock screen without displaying sensitive
information to unauthorized parties.

Change-Id: Ibef0dfed3580de052dbda74829f4bd565b878369
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
a242bf72f4c5d085a00b723b8cd09e8856eaf265 12-Jun-2014 Jay Shrauner <shrauner@google.com> Fix NPE when senderAddress is null

getContactIcon was returning a null object when senderAddress is null.
Change so returns default email icon and default wearable background.

Bug:15592903
Change-Id: Id8eb7ceb72c9558157a3d502dbceb0793a7e75ff
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
5a5b99b97c06fbe54497af0ea9adb8b14a62f91d 12-Jun-2014 Jay Shrauner <shrauner@google.com> Fix error log statement

Fix error log statement with %d but no argument.

Bug:
Change-Id: Id0a8108fc3c947f08b5c4c0bac18f7c6f2cf3fdf
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
ef0f19e1ebf77efac19640becaac544d6be1e89e 12-Jun-2014 Alan Lau <alanlau@google.com> am 54867378: Merge "Return the order key in the conversation cursor." into ub-gmail-ur13-dev

* commit '54867378b9707edd5e5c514aeee241c7fbfa2898':
Return the order key in the conversation cursor.
c92dc65f64e8b09ee78ba2fa799d7d3627373913 12-Jun-2014 Alan Lau <alanlau@google.com> Return the order key in the conversation cursor.

For Email the order key is the message timestamp, Gmail sortMessageId. The
order key is then used as the sort key for notificatin api, and because it is
stable, notification bridger can avoid bridging duplicate notifications and
reodering the email card bundle on the watch.

Bug 15563260

Change-Id: Ibc5aadf9fa2b52e0adb005af12bc451544e71d8f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
b479f0f1beb2203f821bc8ce07d5b62d65694349 11-Jun-2014 Alan Lau <alanlau@google.com> am e806c944: Better user experience for Gmail wear users. * Skip undo on phone when the action is perform remotely * mark conversation as read after reply.

* commit 'e806c9447c7137d2a7a828e7ccdc1f8961aa1c2a':
Better user experience for Gmail wear users. * Skip undo on phone when the action is perform remotely * mark conversation as read after reply.
e806c9447c7137d2a7a828e7ccdc1f8961aa1c2a 07-Jun-2014 Alan Lau <alanlau@google.com> Better user experience for Gmail wear users.
* Skip undo on phone when the action is perform remotely
* mark conversation as read after reply.

Created separate pending intent for Wear actions. NotifActionIntentService
skips the Undo for remote actions. ComposeActivity adds a converstion uri
to start a service to resend notification.

Bug 15332337
Bug 15332837
Bug 15532541

Change-Id: I9fb51ec6ac393075b08f770bbc3b3490aab622e3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
9461561d3f0ea554138c3b24207a69306e07d4bc 05-Jun-2014 Anthony Lee <anthonylee@google.com> Fixes b/15430735 and b/15404897 - Errors from lack of a from address.

If we detect a null pointer from Message.getFrom(), go back the
default value of an empty string. Precedent has been set from other
calls to getFrom() that this is the accepted way of error handling.

Change-Id: Icdd0aa0f86790b912e5bc5b1dde9f81552272816
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
735cbbd8a4676c1d36a25c061c8697668786227f 02-Jun-2014 Alan Lau <alanlau@google.com> Set child notification (email in a bundle) to autocancel. Also add intent
data to undo delete intent that should have been fix previously.

Bug 15332837

Change-Id: I3bc86e19ac724d74e2fd037d54462a6794a7f27f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
9aa05017db4a8bec113e5488230774944ba925a8 29-May-2014 Alan Lau <alanlau@google.com> Merge "Use NotificationManagerCompat everywhere and properly cancel child notifications" into ub-gmail-ur13-dev
b9027cc33cd7b4c5c6f9f3efc8e044e49b491dc6 29-May-2014 Alan Lau <alanlau@google.com> Use NotificationManagerCompat everywhere and properly cancel child notifications

Change-Id: I9d073f3a635c24288a777086d4017143836918ec
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
8913ca6aebe6017efe8060b61b8ad38eda95aa8b 15-May-2014 Andrew Sapperstein <asapperstein@google.com> Allow alternate sources for contact images.

Makes some classes that overridable in order
to provide alternative implementations:
ContactResolver, ContactResolverTask, ContactLoaderCallbacks,
and ContactPhotoFetcher all can be subclassed to provide new
behavior. Also added hooks in ControllableActivity
and MailIntentService to override building these classes.

NotificationUtils was also updated to force all calls
through MailIntentService which can be overridden.

Finally, moved the BitmapCache used in conversation list
to the activity level instead of at AnimatedAdapter-level
(which is effectively fragment level). This speeds up subsequent
queries for images dramatically. We reset the cache when changing
accounts.

b/11387812.

Change-Id: Ie70d800862b073163ccbfa5295d6950e57d64009
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
439aa5d7d9226de4682c3697c68c0703b8847518 28-May-2014 Alan Lau <alanlau@google.com> Port Gmail to new wearable api.

Change-Id: I6ec0e72945814d11be8396f5984bc627b75378e7
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
644ec1e2e65bedbbfff4dbb396d3e4f95d244c62 17-May-2014 Alan Lau <alanlau@google.com> Set background for wearable only. Use the default image if the icon is not
a profile picture.

Bug 14092605.

Change-Id: Id4c437e91a8f632c1d969ed76be294a8da118b20
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
c4288f2504ddf203bf558c7ae0143f36f842535b 16-May-2014 Alan Lau <alanlau@google.com> Wearable notification api change.

Bug 14685201

Change-Id: I24ac8086f685bf6b3dcd1847f755590b8fdc9dfa
(cherry picked from commit 575255c9ad5bcb708f60e928bdafe32301dcf667)
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
89bf7ce646a0ee67e0a8ee10d8834bcf54257d97 14-May-2014 Andrew Sapperstein <asapperstein@google.com> Truncate mailing list prefixes in notifications.

Fixes b/14872144. Also consolidates the logic into
one location. Previously we had near identical code
for both the conversation list and the widget.

Change-Id: Ib99f941cdb1b775c3666952ac3c9af5fbc0ee152
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
b73a16671e5ff1d5a7bfd4fb0ff40053f524a0d6 17-Apr-2014 Alan Lau <alanlau@google.com> Add dependency to prebuilt wearable jar.

Bug 14131130

Change-Id: Ia8af84c25bc7ab9450907184022c9a577ec7effd
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
05a18446a96fa8ea2ae077b482499abf67366e32 17-Apr-2014 Alan Lau <alanlau@google.com> Add content intent to child notification to allow user to open individual
email in a card bundle.

Bug 14115764

Change-Id: I785c4343b71711d5dc861539c6ae8afba71258f2
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
0653f9f2cf6424bbd274a2016b8d72d5431f2125 03-Apr-2014 James Lemieux <jplemieux@google.com> am 10ea28ab: Show "To:<Names>" in sent and outbox index views

* commit '10ea28ab588d8e922c0f78f0f47fe479739ec2cf':
Show "To:<Names>" in sent and outbox index views
8f10ced86b3c8e7229900d6089f56bf12b026116 01-Apr-2014 Andy Huang <ath@google.com> fix crasher on pre-v19

Bug: 13747324
Change-Id: I17bbb7506772c09db3914d00f1478aee085ff1ab
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
10ea28ab588d8e922c0f78f0f47fe479739ec2cf 27-Mar-2014 James Lemieux <jplemieux@google.com> Show "To:<Names>" in sent and outbox index views

b/13304929

The solution being delivered introduces a new folder capability:
UIProvider.FolderCapabilities.SHOW_RECIPIENTS which indicates a folder
should display "To: " in front of its participants list because it
is a folder containing outgoing mail or sent mail (thus viewing
recipients is more useful than senders). This capability is returned
for Drafts, Sent, and Outbox.

Note that extra work was required to make this function properly in
the widget we export to the launcher. See BaseWidgetProvider and
friends for details.

Change-Id: I2fa2394224ef3911992ab8d5cb67b05fdf5f3e85
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
15490239c82cdb4765e87e926c8c1945adedd1ed 06-Mar-2014 Alan Lau <alanlau@google.com> Gmail changes to support Android Wear
* Replace reply/reply all action with Android Wear action.
* ComposeActivity handles the reply intent and sends email in the background
using AsyncTask.
* Create notification bundle for all message so that user can apply action to
each of the message inside the bundle.

Bug 13405604
Bug 13629669

Change-Id: Ia7efa28c7f333b9571d7e99e83cba6124f843e50
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
963c7e4f178037acebddfd13e16fc627ef368c82 05-Mar-2014 Andrew Sapperstein <asapperstein@google.com> RTL - get new BidiFormatter on locale change.

Fixes b/13026665.

Change-Id: I5ec05c39113fbc03134d7769e91145ba2aedac61
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
26a20758413f0f8629ea71a0943304e3ae740165 01-Mar-2014 Tony Mantler <nicoya@google.com> Get rid of Account#name

b/13249115

Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
2354fd98dec04736bd35c1ec8c130cb1aa18ff9c 14-Feb-2014 Anthony Lee <anthonylee@google.com> Make sure that no null values are placed into the notification map.

Motorola IKVPREL1KK-3183. Their patch alludes to the fact that
they have hit a situation where there is a valid key but the value
associated with that key in the map was null. As a response, this
change will change the relationship with the ConcurrentHashMap from
an is-0 to a has-a to tightly control the interface into this class
and force that all puts go through a function that always allocates
an object before inserting into the map.

Change-Id: I1cc100773ba3a7b09edc59fee20e6cc14b5053f8
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
821e578a71c7015646522e729600618f0ec16fc0 07-Jan-2014 Tony Mantler <nicoya@google.com> Deduplicate Address class

Change-Id: I4f6df51f5641475ffaf96b0189ccc00748880cc0
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
edd6c1a2807d2ade930dfd4622707298dc470d64 08-Oct-2013 Tony Mantler <nicoya@google.com> ConversationInfo is now always populated

Get rid of conditionals for when it isn't, and associated duplicated fields

b/11120430

Change-Id: I63d8ef5d190b9a4d42e3029bb4a45004b5543de5
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
cfb969b27f83777e08cd2f1a994dc023574a4739 25-Nov-2013 Tony Mantler <nicoya@google.com> More name/email mixups.

b/11855572

Change-Id: I262bd652c409bdc2ee18c37bc58d0ff1041c7a4a
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationUtils.java
66c49c6bb19be70ba9ef956406f9fb40afa91e59 12-Oct-2013 Tony Mantler <nicoya@google.com> am df794316: Merge "Clean up usage of Account.name when accessing account/folder prefs" into jb-ub-mail-ur10

* commit 'df794316cf4d57c4f07088992f285b692033aac0':
Clean up usage of Account.name when accessing account/folder prefs
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
4ea8c65c494988a624e7d6ec072603cfa00a2c85 03-Oct-2013 Tony Mantler <nicoya@google.com> am e61bff9a: Merge "Change notification code to key off android.accounts.Account" into jb-ub-mail-ur10

* commit 'e61bff9a385eaad9599f2ebc7a4367f504762d75':
Change notification code to key off android.accounts.Account
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
b1b855b71e502459e1571444fb1a9f74883c8330 27-Sep-2013 Paul Westbrook <pwestbro@google.com> Added logging for notifications

Also fix creating account from JSON to only create one
JSONObject

Change-Id: I415128f2b85946ab6dfe6d9449619df3026868df
/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