History log of /packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4c99d70732d5bf20d34da3ce76753e00c7ae7c39 07-Oct-2014 Christoph Studer <chstuder@google.com> Tag message notifications with people

Bug: 17886015
Change-Id: If8ab778c49ff8e4d5e10a2424f3204829a0c8546
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
80528ea3bf0b480ad85da602da1b07cd0f5f98b1 01-Oct-2014 Tom Taylor <tomtaylor@google.com> Persistent SMS notification from Messaging app

Bug 16923813
Bug 17422911

When the Messaging app isn't the default SMS app don't show notifications,
instead dismiss them.

Change-Id: I3dddc36bce3199562781f0683da8a75bcd39c951
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
e858f1252faf8c9a228d834d94c43fa6fefd73f3 18-Mar-2014 John Spurlock <jspurlock@google.com> Mms app: notification kind -> category.

Change-Id: I39db6ce3a779b82a004115aae612868aadf9cef8
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
81b3875142eb12aca44ef95522c1d04e337488cb 09-Oct-2013 Tom Taylor <tomtaylor@google.com> Turn off the DEBUG flag in MessagingNotifications before shipping KLP

Bug 10495015

Change-Id: I5e7e0a48febc4616ecfafd5fbb059a88d88020a6
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
6423c74c0c4eebe43c2f6a7896c5a44ead2559d2 27-Aug-2013 Tom Taylor <tomtaylor@google.com> Add some debug logging for notification sounds

Bug 10469464

Change-Id: I60f4493162f1a1913b7d5b1a5c5cb8bb989c4011
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
b95657904ef888848e7cfd48961bc8900f7fe029 26-Apr-2013 Tom Taylor <tomtaylor@google.com> am 27d0fbef: Merge "Clear collection after we used"

* commit '27d0fbef3893448750680288003ee422aa52c640':
Clear collection after we used
6db678ea4fb26fcffb06daa30ad7ef64d902b3d2 16-Apr-2013 Roger Chen <cxr514033970@gmail.com> Clear collection after we used

Change-Id: Idbec734a2227cb333ed1cc47d64647a9da460e76
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
81e7c18081949936974020e64c052878cb84ef89 17-Apr-2013 Tom Taylor <tomtaylor@google.com> am 488fa008: Merge "avoid IllegalStateException in MessagingNotification"

* commit '488fa0081757d78842b5f3a65b01d8d943fe17f6':
avoid IllegalStateException in MessagingNotification
7ecebc423d3fb8e9d8b5703780582f5a486aa742 17-Apr-2013 yoohyun.choi <yoohyun.choi@lge.com> avoid IllegalStateException in MessagingNotification

If columnIndex is -1, c.getLong(columnIndex) makes IllegalStatementException.
So, the columnIndex should be checked -1 or not before using.

Change-Id: Id0dfffa5159d22dc67d56003b999dce80378736e
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
4ce94b2f607a93ed1a75dad7a8cbde88391a499e 14-Feb-2013 Tom Taylor <tomtaylor@google.com> Looping notification tone never stops playing

Bug 8035672

When we're playing a low-volume notification when a new message is received
while a user is in a conversation, stop the sound after 5 seconds.

Change-Id: I5b1c88985bee711551fb5d4c7a0497d2f94b6783
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
90e32e59610d4a395716b1cfa9c8b041b45e3d4e 28-Nov-2012 Tom Taylor <tomtaylor@google.com> Change tri-state vibrate to single checkbox

Bug 7616158

Update strings and summaries to match the spec, as well. Removed now unused
strings.

Change-Id: I4858cb093db55fc38380926de27c92e38ff436e9
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
d2f67cfca13a6e415636dc253c371fb76974f5fa 03-Oct-2012 Tom Taylor <tomtaylor@google.com> STOPSHIP: Turn off MessagingNotifications DEBUG flag

Bug 7131792

Undo the debug logging of several CL's. The debug logging tracked notifications,
setting the active thread, creating threadIds, and deleting threads. I left
four debug messages active in the log: 1) cancel notifications, 2) create a
new notification with sound, 3) an sms message was just received, and
4) a new mms message was just received. After debugging various notification
oddities over the last few weeks, those four messages will allow us to
continue to track notifications without a lot of log spew.

Change-Id: I96b599658432fa98f1f06df0d9113449c615dc2a
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
b98c3af3e015c6e63476f152a7af1a1310cd0e9d 25-Sep-2012 Tom Taylor <tomtaylor@google.com> Fix notification icon flashing

While testing messaging notifications, I noticed there's a lot of flashing
of the mms icon in the notification bar. I didn't even have to look at the
code to know why. blockingUpdateNewMessageIndicator() gets called from a
number of places to update the notifications. Before rebuilding notifications
it first cancels any existing notifications. This causes the flash. A
simple solution that eliminates the flash is to not cancel the notification
if we're going to put up a new notification.

Change-Id: I7a12508d9e7c6725bbd581e231aa6dda090ec971
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
d645c8b53ae904bc059ee1ca7232916637c223e5 25-Sep-2012 Tom Taylor <tomtaylor@google.com> Notifications ring many times

Bug 7190093

markAsRead() was causing multiple sound notifications. The code for playing
a half sound notification needed to check whether one of the outstanding
notification was actually for the focused conversation. I'll add this CL
to the list of CL's to turn off logging in.

Change-Id: I84ddc2434630ee60f2eabc273d40195c95cd6061
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
c6be7e1a81769764ce0b51ce03406ad96944d8e5 19-Sep-2012 Tom Taylor <tomtaylor@google.com> Notification beep sounds every time I open a previously viewed SMS

Bug 7192246
Bug 7117451

Only beep it there are outstanding notifications. Also, there was a race
condition between receiving an sms and putting up a notification and
the conversation getting marked as read.

Change-Id: Ib3050582cbcef2986214fcb82c8c64aa9948211f
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
bb04f3d9317bb2bfdd0bdf50b13ea06a130517ae 18-Sep-2012 Tom Taylor <tomtaylor@google.com> Merge "Messaging notifications do not always come through" into jb-mr1-dev
2d65e7eb956e60c058de876ddbfff504620ce7a3 18-Sep-2012 Tom Taylor <tomtaylor@google.com> Messaging notifications do not always come through

Bug 7117451

Add more debugging so I can see that we're clearing setCurrentlyDisplayedThreadId()
in CMP.onPause.

Change-Id: I2230b2661f7bbebcdfdd29ee1ab4c31bb59deea2
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
bc7f97ae7d3661a44211d404fe4e187c35afadce 18-Sep-2012 Tom Taylor <tomtaylor@google.com> Notification goes to new message instead of existing thread

Bug 7169881

blockingUpdateAllNotifications() gets called from Conversation.markAsRead().
markAsRead gets called often, on every DB change (see CMP.mDataSetChangedListener)
and on every user interaction (see CMP.onUserInteraction()).
The call to blockingUpdateAllNotifications() wasn't passing in the threadId.
As a result, the code would build a notification for an incoming message
even though CMP was looking at that thread. This caused the messaging
notification icon to flash in notification bar as notification were
created then quickly dismissed. This change fixes that by not creating
notifications (other than a soft beep) for incoming messaging on the
thread the user is looking at. It also fixes the empty notification that
would take the user to a new conversation.

Change-Id: Ic0177cdd05d198abc85eae9077688c360573c879
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
3c307cabb5bd96ed174930ebf17f533bf2a79de7 15-Sep-2012 Tom Taylor <tomtaylor@google.com> Group MMS showing subject for every single message

Bug 7112646

Don't show "<Subject: no subject>" for mms messages where the subject
is "no subject"

Change-Id: I9b4c71ede607699273dbee2b791a879c96d0c993
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
6d2ba55a4bd1937bbec101ab2a4c005b566b43f8 09-Sep-2012 Tom Taylor <tomtaylor@google.com> Messaging notifications do not always come through

Bug 7117451

Add some temporary always-on debug logging messages to the Messaging app's
notification code.

Change-Id: I9a33c39338d1e119d7b343af0e0fcfb5218f65c0
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
4c6c7c65a1033d5cc0d87cc8b0e07a69db1842e8 04-Sep-2012 Tom Taylor <tomtaylor@google.com> SmsReceiverService NullPointerException in replaceFormFeeds

Bug 7006780
Bug 7082042

Protect against a null message. When there's a null message, put an empty
message in the database (vs. "null"). While testing, I hit a crash in
MessagingNotification.updateNotification where calling:
NotificationInfo mostRecentNotification = sNotificationSet.first();
hit an exception. We should never be inside updateNotification without
there actually being a notification. updateNotification is called from
blockingUpdateNewMessageIndicator() which is called by several async
services, such as SmsReceiverService and TransactionService. The code
relied on a global variable. There's no need for the variable to be global.

Change-Id: I23b0a0ebed30905468832b2f0f80f2f0016768f0
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
d64419030e1fec1e751695dab3bd7236e2fb0214 02-Aug-2012 Roger Chen <cxr514033970@gmail.com> Clean and format all imported packages

Change-Id: I2e45f5ba1d56b9b17314a8b0f4c0fc1a5d8fc4d9
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
64fefc1c9b26bd6778c318e83cec696abb389c22 14-Jun-2012 Daniel Sandler <dsandler@android.com> Show blank line after SMS text to get the smallIcon back.

Showing the app icon is important enough to justify the
extra blank line, so if we kick out the smallIcon with an
avatar we need to force the last line to show.

(Partially reverts commit cfb8ce08686890c943a824b418ad56a44ae1dd85)

Bug: 6654922
Change-Id: I887fde6bd8246701d422cc89aa44e2d041d7284f
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
cfb8ce08686890c943a824b418ad56a44ae1dd85 13-Jun-2012 Daniel Sandler <dsandler@android.com> Remove blank line after SMS text.

The last line is now hidden for you by the framework if you
don't have some text to show there; putting a space negates
this, which leaves a weird empty row down there. Space (and
row) removed.

Bug: 6657006
Change-Id: I672a18de4c6c05e261cf04b67dcdf2aa39f614b8
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
ca7b54a002b5bc627171d1b275cb016bf1105da2 07-Jun-2012 Daniel Sandler <dsandler@android.com> Show SMS text in collapsed notifications again.

Bug: 6614376
Change-Id: I4c2a541cbc4e5bf622c192ad952bc2df5d2323a2
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
ee0f8ea8d8739358387443b4fe7d1d9edf44f601 29-May-2012 Tom Taylor <tomtaylor@google.com> Cleanup notifications to match latest spec

Bugs 6494688, 6494834, 6495125, 6495123

Change-Id: Iee09e8118b6c5d0a95ea992c129699b1a7d16fc1
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
be8c4cdb145e2919e1b5916355e5a92978e013f7 05-May-2012 Todor Kalaydjiev <todor@google.com> Fix quiet notifications: there was a concurrency issue w/ thread ID tracking

Bug: 6424461
Change-Id: I6ce2f3aef4035156e227275af3fdc277bc36ec63
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
2664505ad7917a1d1cc2294bbc958b72aa335e56 04-May-2012 Tom Taylor <tomtaylor@google.com> Received SMS message content is shown twice in the Notification bar

Bug 6439922

Don't set both a content message and bigText message.

Change-Id: Ifaee4f37ae01dd84f623a0abe3554f8e41c0b0f6
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
f677c24f07befa52ae977461c56fedeb0ad3eb47 02-May-2012 Tom Taylor <tomtaylor@google.com> Crash when received MMS notification

Bug 6432493, 6432516, 6432515

Change-Id: Iac15087642e5ac03c5deab5bf4f383c8bd78d7ea
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
fb7068020e74e431acc9511212d2a6d17258ab9e 02-May-2012 Adam Powell <adamp@google.com> Follow API change in TaskStackBuilder

Change-Id: Ie6e509675e1ab6ae7ff3ec35d7adfbe6eb24245c
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
6cc254afc74dee97c7ef356612ae9ec7bc8b77ce 30-Apr-2012 Tom Taylor <tomtaylor@google.com> Back should progress through the app before returning to Home

Bug 6385001, 6384668

Use the TaskStackBuilder for both notifications and the widget so when
the user hits back, they'll go back to the conversation list (if not
already there) and then back to home.

Change-Id: I238619d2cac4f6286d701bbc1e20290e183fdb0a
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
429f4c0b2a6ada384e30af31644f1edba0284b4d 27-Apr-2012 Tom Taylor <tomtaylor@google.com> Implement wonder-notifications

Bug 6288543

Support wonder-notifications. Show picture from first
slide. Show big text notifications where the whole message is displayed.
When there are several unread conversations, show them all using a digest
notification.

Change-Id: I41addcddd6783074a31ed479bef4c0a04383e9aa
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
9ab4d755b862392724b7dbb12e636235a05cb3bd 17-Apr-2012 Tom Taylor <tomtaylor@google.com> When screen is turned off with Messaging in foreground, no notifications are seen in notification bar

Bug 6198513

Add some logging in the notification code to see if we can track this down.
I can't repro the problem, but other JB users regularly miss notifications.

Change-Id: I130531dd73b765fe2c1eca6d39c9557a32e258e2
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
674b5045f39aedf85e6a7e38237860d000f46de0 29-Mar-2012 Daniel Sandler <dsandler@android.com> Use the new larger notifications APIs to show an entire SMS.

Multiple messages will still be aggregated into a single
(small) notification. TODO: use templates that have not yet
been designed to show a list of unread threads, or to show
the full text of the most recent message alongside a summary
of the rest of your inbox.

Change-Id: Ia7c7adf6230daba95ff645ffeca49ff7903bb0f2
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
b0ef8fc2738b210a2bb0490e75eedc1e7b7b491f 29-Mar-2012 Tom Taylor <tomtaylor@google.com> Calling MessagingNotification.updateSendFailedNotification results in a DB query on the UI thread

Bug 6248511

An AsyncTask comes to the rescue. Do the query in the
background and do the UI work on the UI thread.

Change-Id: Id27790e08ba763df30a86fd0d4c3a0531e01fb8e
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
c7aa632be8e7d3ebe71f236f534ea2f0af71e04a 19-Mar-2012 Tom Taylor <tomtaylor@google.com> Add a widget for SMS/MMS

Bug 5935857

Change-Id: I1246487d974fef9de0f26e7b55fad2a940b084d5
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
ddd31c4011b4191035bdfbba05a8edb1785f71af 13-Mar-2012 Todor Kalaydjiev <todor@google.com> Give names to all background threads we create. No logic changes.

Also, fix some warnings by adding @Overrides, etc.

Change-Id: I3d7306f25fb917817359bd46b9274e04d86f4e26
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
c8d727902ff6976c45285a12aab176545a7848bb 28-Feb-2012 Todor Kalaydjiev <todor@google.com> Play sound at half-volume and don't show notification for new msgs in current thread

bug: 5928707
Change-Id: I6954f8f1700daa7d4bca971f72da55d153ab5d39
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
2b64b14b3f1c98fc03e89c77f05bd8bd286610ac 23-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am dac5cbc7: am ffede8f6: am 4fbc794d: Merge "Use name and number for SMS delivery reports"

* commit 'dac5cbc7742135cec66bd9c75fe359a71dc5438b':
Use name and number for SMS delivery reports
ac9a5e52dc349faae2a7d8a990ff2b674c61f027 01-Feb-2012 Alexander Blom <alexvem@gmail.com> Use name and number for SMS delivery reports

Switched SMS delivery reports to display both
name and number of the contact instead of just
displaying their number.

I also switched to using Context.getString() instead
of String.format and also added brackets to the if
statements to follow the Android coding style.

Change-Id: Icb95712714523c2ac465835eeb94a99865fae0c3
Signed-off-by: Alexander Blom <alexvem@gmail.com>
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
1fdc24a996e1c2d6a1add1f40260c5e0380f3112 11-Jan-2012 Tom Taylor <tomtaylor@google.com> Implement back intent on notifications

Bug 5214808

When the user selects a sms notification while in another app, they're
taken to the message conversation. Now when they tap back, they'll go
back to the conversation list. Tapping back again will take them back to
the activity they came from. This is the new standard in ICS.

Change-Id: I3a3dd97f6c895edd64656abf2995d17474950d11
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
1b8df494e49bf934fe160baea54ab5afc2ff3100 01-Dec-2011 Tom Taylor <tomtaylor@google.com> "Send calls to voicemail" should also mute SMS notications

Bug 5677944
When a user marks a contact with send-calls-to-voicemail, don't show
sms/mms notifications for that contact. Tested the changes with sms,
mms, and incoming messages with email addresses (a different code path
in Contact.java).

Change-Id: I7ac443dbee0659fc2f5782f5f2141a65a9c07071
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
d83675687b1ef742c33bffe8195d7b1852c2c01d 11-Nov-2011 Tom Taylor <tomtaylor@google.com> Add a new intent to allow 3rd party apps to disable SMS's notification

Bug 5552615
In response to the new intent, the messaging app will put up a dialog
that let's the user turn off messaging notifications.

Change-Id: I36f7e561fd85e3ba45ca8831943fdae50a14f432
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
7015fa3f96383fa8a34d6b9e28f61d228e234d7e 06-Oct-2011 Todor Kalaydjiev <todor@google.com> Don't send OUTBOX messages on reboot; instead, show a failure notification.

b/5172594
P.S. There will likely be a follow-up change to implement the same behavior
upon other triggers, not just reboot.

Change-Id: I0ed0f2fba2c097efd91f2d726f85b4f9559e2723
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
f9037fd05d3782f14909fc481a4b90b8b8154b1e 12-Oct-2010 Wink Saville <wink@google.com> am ef1e257c: Remove some PII.

Merge commit 'ef1e257cbaa7f7085eda3a9b075eca79075aab89' into gingerbread-plus-aosp

* commit 'ef1e257cbaa7f7085eda3a9b075eca79075aab89':
Remove some PII.
ef1e257cbaa7f7085eda3a9b075eca79075aab89 12-Oct-2010 Wink Saville <wink@google.com> Remove some PII.

Change-Id: I846866881d79b985ea0bc6fa647f8e7a38e63a9b
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
6a9c779f0c0dc6cf3ae942ff70fb6c806aa166dc 04-Aug-2010 Banavathu, Srinivas Naik <snb@codeaurora.org> Mms: Delivery report should display recent message details.

On sending SMS to multiple recipients with delivery reports enabled,
the delivery reports for all the recipients display the details of first
recipient since the time stamps are same. To fix this, need to query in
the ascending order and display the details of last message which is the
most recent message.

Change-Id: I9917a7a3fd56daceccdc9fdc5f3cf1294c22c320
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
e14b79584cca1bf7ba60c53bd7e3d6386adbfc59 09-Apr-2010 Wei Huang <weih@google.com> bug #2582343: attempt to fix the sticky notification bug.

- when going to the compose screen, we query to see if there are unread messages, and if so, update both read and seen columns to 1. So in the chance that read=1 and seen=0 (not sure how that can happen), we wouldn't update seen to 1.

change the query to check for (read=0 OR seen=0) instead of just (read=0).

- add selective verbose logging in case this isn't the real fix.

Change-Id: I978ba3a83be227cd924d0c4c85d090bf42be1c8d
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
3b21f6ab04db5936d73e9f53032f1587389380ff 22-Mar-2010 Tom Taylor <tomtaylor@google.com> Fix DB query on the UI thread

Move a notification query on the UI thread to a worker thread.
Any calls from UI threads (which includes receivers) are made
nonblocking. Calls from non-UI threads (which includes services)
are blocking. Tested various scenarios and checked threads in the
debugger. Bug 2524765 and bug 2533501.

Change-Id: I38213b7202957bdb103058b657be04bfe6b085dc
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
006d49271549ed639ffcd70d94c7650bb3514796 17-Mar-2010 Jim Shuma <jshuma@google.com> Bug 2457183
Silent/vibrate

Changes for Mms

Change-Id: Ib62b442551ded4695ea37ef5ec4a24c1f3240e1d
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
c36deab7d27940a07554cc424114d9c9ddd36552 11-Mar-2010 Tom Taylor <tomtaylor@google.com> Don't show toast

When the sms delivery report setting is turned on, only show a toast
on a delivery receipt, not for every received message. Bug 2501111

Change-Id: I29bf90ea250bd3d7f2e9f5a0bceac769bfa53e94
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
f7e8281a223af6228e6399055a6197a1edd9bc3a 09-Mar-2010 Tom Taylor <tomtaylor@google.com> Remove mms-common

Get rid of the mms-common library and move the mms files back into the
framework where they originally came from.

Change-Id: I8ce2b0a2a3cfc6b7da13ce0e791173c09dd8f0f5
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
5a73318ac906b37eb5634a6975a8a26ef5ed36ef 05-Mar-2010 Tom Taylor <tomtaylor@google.com> Multiple status icons

Previously, we could only show one of three possible icons with an
individual message: locked, delivered, and error. With this change,
all three icons can be displayed. The new icons are smaller than the
old ones. Still waiting for a couple of new icons. Bug 2293991

Change-Id: I960746f0e5a0601ae79b4104316eda0a7d1978c1
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
70f5af8fd89d66ae246a805d10a50540746319aa 01-Mar-2010 Wei Huang <weih@google.com> bug #2030420: mark all sms/mms messages as seen when the user clears the notification.

- implement the delete intent for statusbar notifications, so when the user hits the clear notification button, we'll be able to mark all messages as seen.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
627007213deb59ef938c80353c8f3598b01478b3 26-Feb-2010 Wei Huang <weih@google.com> Bug 2030420: fix SMS/MMS statusbar notification.

- don't show statusbar notification for sms/mms based on whether there are unread messages or not. Instead, add a "seen" column for the SMS and Mpdu (mms) table. Each SMS and MMS message will now have a "seen" flag in the db. If there are unseen messages, we'll show the statusbar notification. Once the user reads a thread, we'll mark a thread (and all messages in the thread) read and seen. If the user goes to the conversation list activity, we'll mark all messages "seen", but won't touch the read flag for the messages.

So now the user can have many unread messages, but still have seen all the messages, thus won't get notified repeatedly just because there are unread messages.

we'll mark a message "seen" flag to 0 for incoming SMS and MMS (pdu) messages.

to-do: mark all messages as seen when the user hits the clear notification button in the window shade.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
fd644551e8506266aad2b76463b51b44154ed62f 29-Jan-2010 Tom Taylor <tomtaylor@google.com> Update refs now that MMS is removed

Move MMS to mms-common library. Update imports.

Change-Id: I28fa24a68c27977eba58cb62f2667596d3abe2c4
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
5227290bbaefe2438cac9b3868a72a12a3339e83 20-Jan-2010 Mike Lockwood <lockwood@android.com> Use default values rather than hard coding green for LED notification color.

Change-Id: I5b112684cf9e10479d32bd70085483d2774e26ab
BUG: 2329568

Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
3451cbcbfb5a26dba9b6713e07ba9e279f90c7de 23-Dec-2009 Tom Taylor <tomtaylor@google.com> resolved conflicts for merge of 64c734ff to master
64c734ffe641e64faf77d3a0d879b1ffd3c02730 23-Dec-2009 Tom Taylor <tomtaylor@google.com> am 6be18bed: Unbundling work

Merge commit '6be18bedb5b87dbbcdb54f37d5a0945bd0f71377' into eclair-mr2-plus-aosp

* commit '6be18bedb5b87dbbcdb54f37d5a0945bd0f71377':
Unbundling work
6be18bedb5b87dbbcdb54f37d5a0945bd0f71377 17-Dec-2009 Tom Taylor <tomtaylor@google.com> Unbundling work

This is the first step in unbundling the Mms app. Some of the changes include:
- moving some of the Mms code from the framework into the app itself.
- same with emoticons
- remove dependency on internal drawables and add local copy to mms
- some dependencies on various internal classes now moved to android-common library
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
c579b9e9cd2257695e609ce7a3f85adab96b78f7 12-Nov-2009 Jean-Baptiste Queru <jbq@google.com> fix build
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
a133a2c0f6a8b06a206669a350041986cfc7ba34 11-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
e3baaa51cd25b52c7a24e381319926b9da00abdf 02-Sep-2009 Wei Huang <weih@google.com> don't vibrate by default for new message notifications in MMS app.

- also fix cursor management.

Change-Id: I7a786b8651408c3803abe9eddf1921e4344821b8
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
800f2ac17e15b24e93158574649e821a334c491e 01-Sep-2009 Alexis ROBERT <alexis.robert@gmail.com> Shows a Toast when a delivery report has been received.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
3c68b6852913222dd982dddd4e39b3e57613c37e 30-Aug-2009 Wei Huang <weih@google.com> fix bug 2087495: don't show the notification ticker when not showing a new message notification.

- when updating mms notification, don't always display a ticker message for the last unread message.
- remove old logic no longer used.

Change-Id: I3c004cdb688dd897644dbaa75573dfc1e5b9e258
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
812391ad832f3fdac054ad3a50af563da16e99b5 25-Aug-2009 Wei Huang <weih@google.com> Add onNewIntent() to ComposeMessageActivity, and add the launchmode="singleTop" to AndroidManifest.xml. Just specifying the intent flag Intent.FLAG_ACTIVITY_SINGLE_TOP doesn't make the activity single top.

(cc: Dianne only for the activity launch mode flags in AndroidManifest.xml)

- the singletop launch mode is needed for the case when we receive a new message notification for the same contact that's on CMA already. If CMA has a MMS draft on screen (but not saved to db yet), not going thru. onNewIntent() would cause the following bad sequence.

- onCreate() would load any draft saved in db, but in this case there isn't draft saved in db yet because we only save draft in CMA.onStop(). So loadDraft() would load the empty draft.
- onStop() on the old CMA activity would now save the in-memory MMS draft to db.
- the new CMA lost the MMS draft that's there before clicking on the notification. But resulting db has the MMS draft, which is now orphaned and not associated with the conversation. From here on out, entering and exiting the CMA for this conversation would not see the MMS draft, but it's there in the part table in db. VERY BAD!

so with onNewIntent(), we can check if the new intent's recipient is the same as the old one, and skip the whole shenanigan.

- add debug logging for draft cache. Changed the log tag for draft cache to "Mms:draft", and CMA to "Mms:compose".
- guard against null cursor returned from Contacts query. Contacts is very flaky right now, and I am getting a null cursor from it all the time.
- reorg logging. Add new LogTag class. Log MMS app logs using "Mms:app" and transaction logs using "Mms:transaction".

Change-Id: I5e12c87ab378ff9b6ff326e136598f64bd423129
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
95817b166d415114bac89ca0946c3717ae229526 06-Jun-2009 Tom Taylor <tomtaylor@google.com> Fix bug 1794914: Message not downloaded notification leads to "compose message" UI.

With this change, the thread id gets correctly passed in extras so ComposeMessageActivity
knows to load the thread. Also, added code to be able to detect and dismiss the notification.
Otherwise, the notification would stay up forever.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
33a87f96f8c625aa10131a77a3968c97c4ec5a62 27-May-2009 Ficus Kirkpatrick <ficus@android.com> Remove all references to ContactInfoCache except those in Contact.

This is in preparation for moving the database logic from ContactInfoCache
into Contact and removing the old cache.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
70c73e05a792832aa28da751cdaf3fa83a7b8113 23-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Begin moving all conversation data behind a data model with a cache.

Remove some unused code like the stale concept of "common threads" vs.
"broadcast threads", old references to search, etc.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
e995b84b783c4a430bf3899372a337cc9c896b38 17-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Scrub the MMS app for dead code.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
66dde9460badebf8e740275cabde9cca256006eb 16-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Stop requiring a Context to be passed in to ContactInfoCache.

It already has a perfectly good one sitting around in its instance.
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
810fae756f4d2db00b35d7c9dfead252737abdac 28-Mar-2009 Tom Taylor <> AI 143330: am: CL 143180 am: CL 142923 Fix bug: 1730901 - Unread notification takes me to the wrong thread.
When a user selected a notification for a specific message failure, the intent sent to
ComposeMessageActivity was sometimes a previous intent and the wrong message thread
would be displayed. We needed to set a flag in PendingIntent so the intent we passed
in would replace any previous one. Hard to find. Easy to fix.
Original author: tomtaylor
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143330
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
3977ee5f77396df57468d93610d9385f72ea278f 26-Mar-2009 Tom Taylor <> Automated import from //branches/cupcake/...@142923,142923
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
b11a5086727c4b67c72ca605771fb37e12dcf803 26-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142753,142753
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
d63344421b131e7bd44d25f5c5914400e7cc7f93 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/cupcake/...@142616,142616
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
b92b26763e49fd9cc34d382dee4d764ef163bde5 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142331,142331
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
b3cb9bbf929f70cb4855f03e4bfbed749022cf1b 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142128,142128
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
35a74a9e0ee7c171c6e17f0eda4b0df0253f8364 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@141740,141740
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
809c9ceddf5be502a7ba0389421b8b166a319a9d 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/cupcake/...@142327,142327
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
0dca46a4e0582a449315ddbe424412511bf4bbc7 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/cupcake/...@142126,142126
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
0f55000e8fa21e909e003ad6d20a887964beda01 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/cupcake/...@141736,141736
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
5d2d0046ada7b53205e537d8675d32a8785e8d1d 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
836945de572ac80fd6f6a7bf59036d4cce801410 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
2f56791329cefc49ce79663b8d3aff50594cc1f3 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
72735c62aba8fd2a9420a0f9f83d22543e3c164f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
892f2c5bf965b1431ae107b602444a93f4aad4a3 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
153ae99e0a7d626a24d61475eeb133249deb448c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
abd7b2d90f7491075f1daba4b4cccdfc82f8ddd1 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
121083d1d2046ec3f7c50c19366303c797833a4a 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
59d72c57ce9c319b6cd43ce2ab36b7076c9e821f 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
44cea74dc55e2459262d0d765ef4a69267dd09b0 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
3dbc13db0e4e332b0ab7e9515a7e47cefd70f627 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
0f236f55349f070ac94e12cca963847173393da8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
8eed706474910ccb978acda03e85d3261037da6e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java