History log of /packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a8ec27f7ab554745e1e1c4700455fdfd6a1048e9 02-Oct-2013 David Braun <dabraun@google.com> Improve Messaging app behavior when not default SMS app.

Bug: 10819173 change Messaging app to handle the use case when it's not the default SMS app on KLP
Bug: 11006233 No text box displayed for writing message after tapping on "Write your own" when providing a quick response to reject an incoming call
Change-Id: Ic5e7bfab8a7266fdc25fc6a9545a4fc836110f6e
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c7c68dba4f3440f234f65eef579f9aaa82682f8c 27-Sep-2013 Tom Taylor <tomtaylor@google.com> Remove smiley support

Bug 10641371 - Remove ascii --> emoticon conversion

Change-Id: I5350db1baef4c1277775e6600cd9ed077684b655
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
991a1f3a31bd749573b4d780a3e4d01e6c1c293f 20-Sep-2013 David Braun <dabraun@google.com> Update Mms app to better handle not being the default app

Adds new settings to make it easier to make this the default
app and to make it easy to change the default app.

Disables all options and menus in the UI which would send
or otherwise perform write operations on the SMS database when the app is
not the default SMS application.

Enables or disables all settings UX based on whether or
not it is the default SMS application.

Adds a banner to the top of the conversation list if Messaging is not
the default SMS app making it easy to set Messaging as the default app.

Bug: 10819173 change Messaging app to handle the use case when it's not the default SMS app on KLP
Change-Id: I68dc1c0c72df75bda23f3a137ccc3b279526bb2c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
06147bd40d0062e3f4aaabaf9c87a424892bc6ad 11-Jul-2013 Tom Taylor <tomtaylor@google.com> am 5a3a32b8: When a video attachment from MMS is saved to the device, the content is not displayed on the Gallery app

* commit '5a3a32b8e4c9c24397dfeaf74894b907b218f8b9':
When a video attachment from MMS is saved to the device, the content is not displayed on the Gallery app
5a3a32b8e4c9c24397dfeaf74894b907b218f8b9 10-Jul-2013 Tom Taylor <tomtaylor@google.com> When a video attachment from MMS is saved to the device, the content is not displayed on the Gallery app

Bug 9578924

This is bug reported on the GS4. Fix by removing leading periods from the
saved filename.

Change-Id: I6f025efc567c33dfdfd926ecf5131b258047315a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
42499bf320f283bd4f56e6465315cb1e212c9e58 17-Jun-2013 Tom Taylor <tomtaylor@google.com> am b7b0d257: Merge "Prevent FC in low memory conditions"

* commit 'b7b0d2573fdfdcee1a4b7625c5130e66248d05ea':
Prevent FC in low memory conditions
7d0bdc14482c047c75046d63627da8d35f1dc95e 04-May-2013 Marcel Bokhorst <marcel@bokhorst.biz> Prevent FC in low memory conditions

Add missing null cursor checks

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I974eea82cac3dfe3a01e5d79c1721d3514f940f6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
66ca02a588b58fb841f5fe2c2140eb6be9c7577d 29-Apr-2013 Tom Taylor <tomtaylor@google.com> Options menu missing when forwarding a message

Bug 7319876

The fix for disabling various features when responding to a missed call
on the lockscreen, including the display of the
message list, also broke the forward message options menu in the normal,
non-lockscreen case. With this change, when CMA is in forwarding-a-message
mode, show the options menu.

Change-Id: I889c69c8a27057174a69befe1bd54a7531142096
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b36a47c3587d9faa3d9e21a7b572eb9464641b18 20-Mar-2013 Tom Taylor <tomtaylor@google.com> Replying to a phone call with a SMS potentially exposes sensitive/personally identifying information

Bug 7319876

When ComposeMessageActivity is in the mode where it can send a message
from the lock screen, hide the conversation list and don't show any
menus (previously, the user could delete the conversation from the
menu).

Change-Id: Ieec8fdddd794717917aa4d37729478c81f8c6d02
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1b5e0f434ebd7ddf491fdd0fb3044b62656fa642 28-Nov-2012 Tom Taylor <tomtaylor@google.com> Opening recent apps while on compose dismisses compose on re-rentering app

Bug 7586014

Don't bail back to ConversationList when we've got an empty ComposeMessageActivity.
In the case where the user has entered a recipient and followed the same
repro steps in the bug, a draft is created (see CMA's saveDraft) because
the receipient editor is open and there is a recipient. In that case, the
working message is not discarded and does not go through the escape-to-
ConversationList case. By the way, I was not able to repro the original
bug 2793874 that added this escape clause code.

Change-Id: I92d84f19c8ba2c27a8c28975dc95d1d230b89f1c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ff3560f15287f7fac34769b3a4fa75839bacb3f0 10-Nov-2012 Tom Taylor <tomtaylor@google.com> Bringing up the keyboard when a picture is the last item visible will always scroll the conversation to the bottom

Bug 7511504

The code to scroll needs to test that the tall item is the last item in
the list.

Change-Id: I4a9d72178564b8047c40af1dc148904b75e79694
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
de3b06d3102ef4e21c199e722592aaed73594643 08-Nov-2012 Tom Taylor <tomtaylor@google.com> MMS doesn't scroll

Bug 7487819

There was a bug where if the list only had a single item, the smooth scroll
function would bail out early without scrolling. Also, if the last item
is taller than the size of the list, we always want to scroll, regardless
of the other conditions.

Change-Id: I9ee4d3977678e577f10f768c987fbd80dc1ff436
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a2b5b37119939c265098ef58a410a721a0cf4e38 07-Nov-2012 Tom Taylor <tomtaylor@google.com> Merge "MMS doesn't scroll enough on tall list items" into jb-mr1-dev
184934b22db6e0235a568e74ddfbf698204e3239 06-Nov-2012 Tom Taylor <tomtaylor@google.com> MMS doesn't scroll enough on tall list items

Bug 7487819

When we've got a list item taller than the whole list when the keyboard
is up, scroll the top of the item off the screen so the bottom of the item
is visible just above the keyboard.

Change-Id: I746e4883cd9e69ca788742c05f8feacf96a8b771
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
288707d12efa6a0f5109e4796e1ce793198473e0 06-Nov-2012 Mike Dodd <mdodd@google.com> Fix to hide keyboard jank-free when coming back to MMS with no draft.

What was happening is that if you loaded a conversation, brought
up the IME, left, then came back, there was a brief period where the
window size was still small (leaving room for the IME), then the IME
would go away and the window size would expand.

Hiding the keyboard in onPause or onStop didn't prevent this. So
the fix is to extend the hack of delaying loading the draft messages
to all cases, not just the case where the keyboard is going to be
shown. This way the window manager settles down before we load
the content, and everything comes into view in the right place the
first time.

b/7481258

Change-Id: If2592737bda4d2938fc8fc982724459d3d26fd35
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
874ef885ee3f132491fddb3dee812e6d38660b79 23-Oct-2012 Wei Huang <weih@google.com> b/7378607: more tweaks to reduce jank interacting with the keyboard.

- remove the hack to hide keyboard in activity onPause(). Yay!
- hide the compose panel in onRestart(), so it doesn't flash when
we re-enter the activity thru. onRestart(). Show the compose panel
later when we load messages+draft.

Change-Id: I314e9298b7b4cfc54a4407d2521b70473d70ee30
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
469db72fcf219fd4c60bc9b01c728bdc3e866d40 23-Oct-2012 Tom Taylor <tomtaylor@google.com> Crash trying to save a draft with a picture from the gallery

Bug 7374081

Change the persister api's to accept a HashMap of opened inputStreams
for the parts. The inputStreams are opened on the UI thread, but the
actual persisting takes place on a non-UI thread. We only pre-open the
inputStreams in onStop, before we lose the gallery permission.

Change-Id: I6eaa8a2635201164a80589e7d30b24a6dd60fcc7
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6e39c964b56287aa74a4432b5531499cda3ab09d 22-Oct-2012 Wei Huang <weih@google.com> b/7390148, b/7392410: fix a couple of issues introduced by cl 558d4cc81f.

b/7390148: when coming back from attaching a photo (or whatever), don't load the draft.
Loading draft creates a new mWorkingMessage object, whch will clear the
attachment url and state, obtained in onActivityResult(). I created a new
member variable 'mShouldLoadDraft', and set it to false in onActivityResult().

b/7392410: when drawing the bottom panel with empty text (so there is less jank), we
need to remove the onTextChanged listener; otherwise, it will reset
mWorkingMessage's draft text too from the onTextChanged callback.

Change-Id: I67b2ec700d90bf85caf5a8b3c87cdb9f15273663
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9a75d01f8fa174396e3f1812e7793b58224e069e 22-Oct-2012 Wei Huang <weih@google.com> b/7386794: fix bad keyboard interaction in MMS.

- I misunderstood the meaning of 'mIsKeyboardOpen' in my previous cl 558d4cc8.
'mIsKeyboardOpen' is always true for soft keyboard. For device with
HW keyboard, it's true if the keyboard is open.

Reverted back the code for calling onKeyboardStateChanged(). We
should not be messing with that when the SW keyboard is open or closed.

Change-Id: I27684885a0dbd6edb3cd563c8d52d06099d6d063
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
741128e7649310e41758e4e88d504c11d61c5458 22-Oct-2012 Tom Taylor <tomtaylor@google.com> Positioning of insertion point on sms draft re-launch

Bug 7381862

Change-Id: I805f83a3b579b36326ab98623bbd4873cdb025cb
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
558d4cc81f9ddc3ea1353bb1e7d05a6a0d1e4b8b 18-Oct-2012 Wei Huang <weih@google.com> b/7363553: part 2 of fix keyboard and window layout interaction when re-entering ComposeMessageActivity.

(this is on top of the cl https://googleplex-android-review.googlesource.com/#/c/242627/4)

The simple idea is to delay loading the message history and draft text until the keyboard
is shown. The effect is, the compose screen shows blank, keyboard comes up, and the message
history and draft get displayed.

While the idea is simple, a lot has to be changed in ComposeScreenActivity to make this happen.

- message history query and draft loading were done separately before. Changed to perform
those actions together. If the keyboard needs to be shown, delay the loading of message+draft
until we detect the keyboard is shown the first time. The detection is done in the windowMgr
callback of onSizeChanged(). If we detect the new window height is less than the old height by
200 pixels, we treat it as "keyboard opened event".

the decision to show keyboard (plus delay message+draft loading) is done in onStart(), but
we set the window mode in onResume(), and hide the keyboard in onPause(). Hiding the keyboard
in onPause() makes it less janky to show keyboard when re-entering the activity.

- modify the initialization of the compose view to not display draft text (which can be
in the compose textfield w/o loading a draft), until the keyboard comes up and we are ready
to load the message+draft.

- remove conditional draft loading code in onRestart(). We always load the draft in onStart() now.
loadDraft() can be a no-op if we come back through onRestart(), if the draft is in memory
already.

- call loadMessageAndDraft in onNewIntent(), which doesn't go thru. onStart() code path.

Change-Id: I2ae953815fe2325b7038a8c647a415275cf77b5f
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
14ec4de3727879a9116399c3ea6a77a7bcdfc35d 19-Oct-2012 Wei Huang <weih@google.com> Merge "b/7363553: fix a regression where keyboard isn't shown when composing a new message in SMS." into jb-mr1-dev
9446c6755d755e98b55747d03497834a5c05ae17 19-Oct-2012 Wei Huang <weih@google.com> b/7363553: fix a regression where keyboard isn't shown when composing a new message in SMS.

- fix a regression caused by https://googleplex-android-review.googlesource.com/#/c/242627/4.
Make sure to show keyboard for a new conversation.

Change-Id: I4d6465d46f9c18e1545a5d12e35368e53c5a4198
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8cc338d324dc4c92b686029064882147e9054f17 18-Oct-2012 Tom Taylor <tomtaylor@google.com> Empty draft created on deleting a group MMS message

Bug 7360609

Don't save an mms draft for a group message when there's no text. When the
last message in a thread is deleted, automatically go back to the
ConversationList. Earlier when my deletes were failing because of the
NULL threadId in the pdu table, I noticed an exception thrown from
Conversation.startDelete: "startDeleteAll already in the middle of a delete".
startDelete was being called in a loop and of course sDeletingThreads would
be true if the delete hadn't completed in between iterations. Fix by having
startDelete do all the deleting of multiple threadIds.


Change-Id: Idfb8c0d54d8bb1875bbe7c5163e75bbb0dfbf14d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d2885b1519cfb0b037f7934b39362c8fb60166c9 18-Oct-2012 Wei Huang <weih@google.com> Merge "b/7363553: fix keyboard interaction when re-entering Compose Message activity." into jb-mr1-dev
706aae13ff1d40788787dc2651defb4ba6c8ecda 17-Oct-2012 Wei Huang <weih@google.com> b/7363553: fix keyboard interaction when re-entering Compose Message activity.

rework the fix for b/7350054, use recommendations from Satoshi to call getWindow().setSoftInputMode()
instead of explicitly showing the keyboard later.

Reduce the number places to call showKeyboard() from 3 places to 1. The new logic is, if there
is a draft for this conversation, we set the window mode to SOFT_INPUT_STATE_VISIBLE, otherwise,
set the window mode to SOFT_INPUT_STATE_HIDDEN. We check DraftCache to see if there is a draft,
and don't need to wait until the full content is loaded to determine that.

In addition, employ a hack to hide the keyboard in onPause(), to avoid a jank caused by
onSizeChanged() called twice when re-entering the Compose activity. This improves the jank
slightly, as we still have to adjust the scroll position, leading to the page jump after the
keyboard is opened. It's arguably a little better than before.

Change-Id: Ic4874c103ae235ce3c813a15bbd72283bc844b1b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
99f6f6403b7d879386b3332bcd43c96b8d3800b3 18-Oct-2012 Tom Taylor <tomtaylor@google.com> Max file size limit from the same phone could be different across different runs attaching a captured video

Bug 7360783

Hide the "Attach" menu/actionbar item when there's already an attachment.
The user can use the view/replace/remove buttons to change the attachment.

Change-Id: Ie863a00433dbdcf14d0a3379a078639c8cff39ee
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
846dc298acaa40c7229008174d849e91faaf8fbb 16-Oct-2012 Tom Taylor <tomtaylor@google.com> IME dismissed when composing message

Bug 7350054

Explicitly open the keyboard if we've got draft text.

Change-Id: Ifefc94830e053578d3927706a26f2fa6379b72a3
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
25274564748c89e2f24fa1ea2eaab0feb9be22e7 10-Oct-2012 Tom Taylor <tomtaylor@google.com> Conversation should scroll to the bottom when incoming received

Bug 7318677

Change-Id: I23a22d26839e204582b26a368e09d36266e2fde7
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9889006f9d29d0509c1c036987ce028de43ac96e 09-Oct-2012 Tom Taylor <tomtaylor@google.com> Add setting to turn on/off group MMS

Bug 6970173

Add a setting/preference to turn on/off group MMS. If group mms is disabled
by mms_config.xml, the preference is hidden from the user (this is consistent
with other mms features disabled by carriers). When group mms is disabled,
receiving a group mms is also disabled. In other words, the received message
will appear to have come from a thread with only the sender and not in a thread
with the sender + the other recipients.

Change-Id: I9510ae269f7b3968c768c7b5f5cf8dcc7fe4eca6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
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/ui/ComposeMessageActivity.java
ea339a26d0f2de0087d4c6ebf9f55c505b922695 13-Sep-2012 Tom Taylor <tomtaylor@google.com> Unable to view all participants of Group MMS thread

Bug 7087996
Bug 7161745

Add a group participants activity so a user can see all the members
of a group chat. Also fix a monkey bug with isCursorValid().

Change-Id: Ic73b6e27a139c74e4c735628ce822d102501da83
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6fa42d477688e71295edcec942445a4beddde8a1 11-Sep-2012 Tom Taylor <tomtaylor@google.com> Clicking on a persons avatar causes undesired behavior in Messaging

Bug 6542880

Don't hide the keyboard when showing a quick contact.

Change-Id: I930bcd19c8d25005e3aba316d512a3991b2d6f65
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
49c82e29195c5e18f7c702ae7109eba5d94813d2 10-Sep-2012 Tom Taylor <tomtaylor@google.com> Draft mms can't be sent because the send button is disabled

Bug 7132522

Drafts get loaded asynchronously, long after the send button state has
been updated. Once the draft is loaded, the code needs to update the
send button state based on the working message.

Change-Id: I92234c6e3ca123be744b495b173fcf9cc2ada8ca
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3d2624fe8d50e9bc3afadde0f4f8a48c8ee2de23 10-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 20da265f: am b2c79a9e: am fb15d874: Merge "Fix 2 bugs in Mms AppWidget"

* commit '20da265f643177296f67c630f605428db3d677f0':
Fix 2 bugs in Mms AppWidget
b2c79a9e772846b3c68cbf9051aa0dedb3ad702d 10-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am fb15d874: Merge "Fix 2 bugs in Mms AppWidget"

* commit 'fb15d874a5da2744f1cf56c3132328cdd8b7ad4a':
Fix 2 bugs in Mms AppWidget
24149983964b1de6a98bcefeb5e6ebfa2d0d7953 10-Sep-2012 Tom Taylor <tomtaylor@google.com> Fix a couple of bugs

Bugs 7087793, 7128602

When creating a new conversation, CMA crashes because the code is trying
to access contact[0]. There's a path when adding a picture and it fails,
where the slideshow can get reset to null and subsequently NPE's.

Change-Id: I0b6eeb3df5cf4484d82e2e78d9fdc01380614548
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9be7edc95cd1e40b79a390e8ae173d4e2710527a 09-Sep-2012 Wei Huang <weih@google.com> bug #7087793: remove "add to people" action menu item for group MMS.

Change-Id: I825c05bddad3dfad95481b28afd5a8c78763e8e4
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
bf8489d5454f11c5a2f6432f5eb5d705db5bb5a9 09-Sep-2012 Wei Huang <weih@google.com> bug #5139811: Get rid of toast for converting message from MMS to SMS.

Change-Id: If25c0230d2b9933b7516105f8e8dc4f3f8db3bfa
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cee64965b033733a494df675892267e109a23dd6 09-Sep-2012 Roger Chen <cxr514033970@gmail.com> Fix 2 bugs in Mms AppWidget

1. Update all appwidgets instead of the first one.
2. Notify the appwidgets to update after deleted messages.

Change-Id: Iac114c3457de80a2b3bd09bf87c48f6c66eb07a1
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cb8815fb447309322097bdd273d610ca5557b21a 06-Sep-2012 Tom Taylor <tomtaylor@google.com> Merge "On receiving a Group MMS the List view displays as two messages received" into jb-mr1-dev
6cb0e9bb8faa8c00294bd35ebebc010979c6669a 06-Sep-2012 Tom Taylor <tomtaylor@google.com> ANR in messaging after launch and clicking on an existing thread

Bug 6772676

The UI thread was calling PhoneNumberUtil.isPossibleNumber which ends up
calling PhoneNumberUtil.getMetadataForRegion which is blocked on a sync
while a data file is loaded. In this case, our loading the contacts in a non-UI
thread associated with all the conversations happened to get there first.
Loading the file was slow enough to cause the blocked UI thread to ANR.
We can never call a file loading function on the UI thread. Since this
call is simply coming from context menu code, deciding whether to show an Add contact
menu item for the number, I'm now using Telephony.Mms.isPhoneNumber which doesn't result in a file getting
loaded on the UI thread.

Change-Id: I4bc1db22c6e20fd78e988fa7e56b7cb37a5cc62e
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ca239ab55759fae4b16823329d5f03a52829ff4d 06-Sep-2012 Tom Taylor <tomtaylor@google.com> On receiving a Group MMS the List view displays as two messages received

Bug 7081327

When an mms is sent, the first thing that is received is an mms
notification message. This message only contains the address of
the sender and not all the other addresses the message was additionally
sent to. The messaging app stores this message in a new thread
(if there isn't an existing one) of the sender's phone number.
Then if the mms auto download setting is turned on (the default),
the app will use the information in this notification message to
download the content of the message. The app will then receive an
mms retrieve confirmation message. This message contains the
full addresses of all those in the group conversation. The app then
creates (if there isn't an existing one) a thread made up of all
the addresses. Then it deletes the original mms notification message.
At this point, you see two two threads for the same message. This CL
fixes the problem by not creating a thread for notification_ind messages
when autodownload is enabled. Messages will show up when they're completely
downloaded.

Change-Id: If515f134026bafaa2256673de1cff89976df8f59
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f19ef48297645cc464e2d89cff7bfff23a7fbe6e 06-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 56f72536: am 253230d4: Merge "Mms: Two popups are displayed when Press Enter key on message screen."

* commit '56f72536efb4f9d0c35f79b87df69c3b8315de17':
Mms: Two popups are displayed when Press Enter key on message screen.
56f72536efb4f9d0c35f79b87df69c3b8315de17 06-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am 253230d4: Merge "Mms: Two popups are displayed when Press Enter key on message screen."

* commit '253230d4c5a654a451dbe3fb11023490435a632d':
Mms: Two popups are displayed when Press Enter key on message screen.
3ff7cd6ffa23c9330d448d580b83fe925a69ac55 21-Feb-2012 Kun Jiang <kunx.jiang@intel.com> Mms: Two popups are displayed when Press Enter key on message screen.

When the framework transfers the KEY EVENT to MMS, both KEY UP and
KEY DOWN event trigger the onEditorAction.
We need to confirm the send message only when we have the KEY DONW
event.

Change-Id: Ia0fcbb9a915f7e6b9f6b0101293eeaae80b3bccd
Author: Kun Jiang <kunx.jiang@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 20356
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c1f03822994dc09939060c41e0ce9cb37175b054 29-Aug-2012 Tom Taylor <tomtaylor@google.com> Implement group mms

Bug 6282172

When multiple recipients are added on a new conversation, the message is
automatically turned into an mms. This is the default, but add an mms_config.xml
option to turn that feature off. In a group mms message list, show the
sender's name on the line with the timestamp.

Change-Id: I8be4c325023bcbaf2498b8c9d8346a2a94ef63ef
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
407a26a1d016a37c6ff7b4e8bc71a00008645ee9 10-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am f9f9b394: am 18e80bf2: Merge "Clean and format all imported packages"

* commit 'f9f9b39420d9f3325a96fee6817eb3eac4f31aaf':
Clean and format all imported packages
f9f9b39420d9f3325a96fee6817eb3eac4f31aaf 10-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 18e80bf2: Merge "Clean and format all imported packages"

* commit '18e80bf2080b4ebbe9f8b2bd2ba37589a4ae9b5f':
Clean and format all imported packages
18e80bf2080b4ebbe9f8b2bd2ba37589a4ae9b5f 10-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Clean and format all imported packages"
5ab9fbd9d9dc597044c28f0b3d5dcad2f7966aa9 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am fac3e6ec: am 7616eb89: Merge "Recreate the options menu after drew the top panel"

* commit 'fac3e6ec451f6518828d907c33ea7071617c8a2c':
Recreate the options menu after drew the top panel
fac3e6ec451f6518828d907c33ea7071617c8a2c 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 7616eb89: Merge "Recreate the options menu after drew the top panel"

* commit '7616eb890a841d55bfc01002198b345c07878966':
Recreate the options menu after drew the top panel
1430eb33c30443e2435ad00c9d68dbefdc247a97 03-Aug-2012 Tom Taylor <tomtaylor@google.com> am 51fd116d: am 364d9267: SMS isn\'t converted to MMS even after 7 segments of messages

* commit '51fd116d992e1a99a5daf78fc7ef0014bb76a0cc':
SMS isn't converted to MMS even after 7 segments of messages
51fd116d992e1a99a5daf78fc7ef0014bb76a0cc 02-Aug-2012 Tom Taylor <tomtaylor@google.com> am 364d9267: SMS isn\'t converted to MMS even after 7 segments of messages

* commit '364d926784135e4889d74c570868db046a67cceb':
SMS isn't converted to MMS even after 7 segments of messages
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/ui/ComposeMessageActivity.java
364d926784135e4889d74c570868db046a67cceb 02-Aug-2012 Tom Taylor <tomtaylor@google.com> SMS isn't converted to MMS even after 7 segments of messages

Bug 6903793

Resurrect the mms_config.xml setting "smsToMmsTextThreshold" to allow
overlays to specify an sms->mms conversion after a certain number
of sms segments have been created. Tested on mysid, yakju, and sojus. All
three have different settings for this feature. Also tested bug fixed by
https://googleplex-android-review.googlesource.com/#/c/103729/.

Change-Id: Ibcfd235edbaa264fede6e48f84f04345d16368fa
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
36498ea16b8b01b71be62f9edab2c7921364279b 16-Jul-2012 Roger Chen <cxr514033970@gmail.com> Recreate the options menu after drew the top panel

The onPrepareOptionsMenu will be called back before the
draft loaded, since the loading proccess has moved to
the non-UI-thread. We always need to notify CMA to
recreate the options menu after drew the top panel.

Change-Id: I91a56b9012a2934d474ceee3e499c559aa8e934b
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
19c6852d8723de787d7848bab87c7ee6ce0928ba 02-Jul-2012 Tom Taylor <tomtaylor@google.com> am cf60e2ae: am e18c2967: Text message scrolling broken again

* commit 'cf60e2aeeb6dc86ec7da7524da8f65182705de59':
Text message scrolling broken again
cf60e2aeeb6dc86ec7da7524da8f65182705de59 02-Jul-2012 Tom Taylor <tomtaylor@google.com> am e18c2967: Text message scrolling broken again

* commit 'e18c29676c04f22044a759cbaa854560ba227a4f':
Text message scrolling broken again
e18c29676c04f22044a759cbaa854560ba227a4f 02-Jul-2012 Tom Taylor <tomtaylor@google.com> Text message scrolling broken again

Bug 6740178

ComposeMessageActivity needs to keep track of whether it was scrolled to
the end when paused so it can rescroll to the end when resumed.

Change-Id: Ib7e7a5e13df354c45a0eddaaa96a5c0f66c05873
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6f124954f936d247ce5655a98148c462a215df24 19-Jun-2012 Tom Taylor <tomtaylor@google.com> am 35a99ca4: am a71358d3: Action bar showing inconsistent information about recipients

* commit '35a99ca46d7c9576ebfd03a7c9209a3b6fb3cd49':
Action bar showing inconsistent information about recipients
35a99ca46d7c9576ebfd03a7c9209a3b6fb3cd49 19-Jun-2012 Tom Taylor <tomtaylor@google.com> am a71358d3: Action bar showing inconsistent information about recipients

* commit 'a71358d3489f50d4fb2a1d522a93feb78ec55a7e':
Action bar showing inconsistent information about recipients
a71358d3489f50d4fb2a1d522a93feb78ec55a7e 19-Jun-2012 Tom Taylor <tomtaylor@google.com> Action bar showing inconsistent information about recipients

Bug 6688110

Get the contacts, not just the numbers, from the receipient editor.

Change-Id: Ia221195fa5b4b98792519d188e1c9447284f8873
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3254b452389b6a9efaeb76766850047315e9c92f 15-Jun-2012 Wei Huang <weih@google.com> am 2fdb00cb: am b8ff5f43: bug #6664404: fix gratuitous scrolling in MMS compose activity.

* commit '2fdb00cbaaa12c9659c8c0b4df8d0a5377cb66be':
bug #6664404: fix gratuitous scrolling in MMS compose activity.
2fdb00cbaaa12c9659c8c0b4df8d0a5377cb66be 15-Jun-2012 Wei Huang <weih@google.com> am b8ff5f43: bug #6664404: fix gratuitous scrolling in MMS compose activity.

* commit 'b8ff5f43809661d46e89a40cce06a54587383112':
bug #6664404: fix gratuitous scrolling in MMS compose activity.
b8ff5f43809661d46e89a40cce06a54587383112 15-Jun-2012 Wei Huang <weih@google.com> bug #6664404: fix gratuitous scrolling in MMS compose activity.

- while on Compose activity, with the Message list view scrolled up somewhere, if the screen powers
off and back on, CMA requeries the message history, then calls to scroll to the bottom of the
message history. This behavior was on ICS and prior. However, if the IME keyboard is up while the
screen off/on happened, we somewhat get two extra sizeChanged callbacks. The first callback has
the message history view at full height, and the 2nd callback has it shrunk to accommodate the IME
keyboard height. In each callback, we call ListView.setSelection(), which seems to cause the
gratuitous scrolling jank.

I did two things to fix this:
1. in onPause(), remember the last scroll position for the Message history list view. After the
activity is resumed and the message list re-queried, I set the ListView's selection to the saved
scroll position (instead of always scroll to the end). This addressed Hiroshi's concern that
we shouldn't automatically scroll to the end after the screen turned back on.
2. in the 1st sizeChanged() callback, the Message history ListView's layout isn't completed yet.
So don't call scroll to end in that case.

These two things made the gratuitous scroll go away (well, because we are not scrolling to end
in the first place)

- fixed some logic in smooth scrolling. We don't need mFirstScrolled flag. It was used incorrectly
sometimes. Also, don't smooth scroll at all if the delta of the scroll is too big. That just seems
gratuitous.

-

Change-Id: I52a073061ac014089b78587bcda0ba64c97d3a78
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1f4c1078a052bf0752640047c1450eb8302d7de1 13-Jun-2012 Tom Taylor <tomtaylor@google.com> am cd7af42f: am eb1a5d14: Merge "ComposeMessageActivity smooth-scrolling behavior wrong and ghostly scrolling when bringing up the IME" into jb-dev

* commit 'cd7af42fc1b0f37baff33ddd8a7cf3609116f3e4':
ComposeMessageActivity smooth-scrolling behavior wrong and ghostly scrolling when bringing up the IME
cd7af42fc1b0f37baff33ddd8a7cf3609116f3e4 13-Jun-2012 Tom Taylor <tomtaylor@google.com> am eb1a5d14: Merge "ComposeMessageActivity smooth-scrolling behavior wrong and ghostly scrolling when bringing up the IME" into jb-dev

* commit 'eb1a5d14f90fcf8516317cef218f6e07a044a081':
ComposeMessageActivity smooth-scrolling behavior wrong and ghostly scrolling when bringing up the IME
0082aabf126e2237756a3de64965096d1a23c92c 12-Jun-2012 Tom Taylor <tomtaylor@google.com> ComposeMessageActivity smooth-scrolling behavior wrong and ghostly scrolling when bringing up the IME

Bug 6634949, 6635459

Revert commit f49fecfcd5617627f283e45e3879f6b6cb52f1b6 first, then fix
the smooth scrolling bugs.

Change-Id: I4c7b020e56ce210fa8338bf0a26b50ebeaa6a1fe
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6711772aaeaed41197bb0a93d21b081bc5b9d7c8 08-Jun-2012 Tom Taylor <tomtaylor@google.com> am 0e6a6e20: am 420d5286: Merge "Messaging: Scroll up, start typing, when second line reached, the view scrolls" into jb-dev

* commit '0e6a6e2002785c3d9fce172f5bcde1d0d187a2b8':
Messaging: Scroll up, start typing, when second line reached, the view scrolls
0e6a6e2002785c3d9fce172f5bcde1d0d187a2b8 08-Jun-2012 Tom Taylor <tomtaylor@google.com> am 420d5286: Merge "Messaging: Scroll up, start typing, when second line reached, the view scrolls" into jb-dev

* commit '420d52867f71e91d279062823f892d52de9689ef':
Messaging: Scroll up, start typing, when second line reached, the view scrolls
f49fecfcd5617627f283e45e3879f6b6cb52f1b6 07-Jun-2012 Tom Taylor <tomtaylor@google.com> Messaging: Scroll up, start typing, when second line reached, the view scrolls

Bug 6612809

Change-Id: I094d9fc1bac4ed4ec68a4a44ed658ff4efb57bee
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
18325d35b9c75ded0a2e14baae4820a5416f49c7 07-Jun-2012 Tom Taylor <tomtaylor@google.com> am 559f0a7a: am 3a999c3e: Unable to save picture attachment from received MMS message

* commit '559f0a7a352cf1796bc0a7bc9b02fa53f33be37a':
Unable to save picture attachment from received MMS message
559f0a7a352cf1796bc0a7bc9b02fa53f33be37a 07-Jun-2012 Tom Taylor <tomtaylor@google.com> am 3a999c3e: Unable to save picture attachment from received MMS message

* commit '3a999c3e0f9a93b08341d9d43374e12695d4b905':
Unable to save picture attachment from received MMS message
3a999c3e0f9a93b08341d9d43374e12695d4b905 06-Jun-2012 Tom Taylor <tomtaylor@google.com> Unable to save picture attachment from received MMS message

Bug 6615046

I was able to repro this by sending a picture attachment to my Sprint
phone via Sprint's gateway 12313123123@pm.sprint.com. The received SMIL
contained the picture, but also contained a text attachment and saving
that was causing the ContentResolver to choke on the type. The fix is
to skip the non-picture, video, and sound parts. This broke in JB
implementing the new drm. The fix is to put in a check that was in the
code for ICS.

Change-Id: I9ce5dcd7bac322b398d11f1d22cf59bc4755fcf0
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
bf139e813df83a72f9ed2cc6faeb7b35bb4bd823 06-Jun-2012 Tom Taylor <tomtaylor@google.com> am ca837761: am 2c432920: Merge "Wrong image shown in MMS preview" into jb-dev

* commit 'ca8377615358c6fe37fc9f25a4fe36a91c78e03a':
Wrong image shown in MMS preview
ca8377615358c6fe37fc9f25a4fe36a91c78e03a 06-Jun-2012 Tom Taylor <tomtaylor@google.com> am 2c432920: Merge "Wrong image shown in MMS preview" into jb-dev

* commit '2c432920ea8d8d2ffea7c117218e3079a1e246d1':
Wrong image shown in MMS preview
e5486018e640aa2c36f68f56d19682a8fd614291 05-Jun-2012 Tom Taylor <tomtaylor@google.com> Wrong image shown in MMS preview

Bug 6104869

The change looks bigger than it is because of moving a function to WorkingMessage
where it's more general. Remove a message's thumbnails from the cache when
the attachment is removed or replaced.

Change-Id: Ib396029bec41884aa06f70a15c028e2d8ff08a0c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8dba25a41b95dfc2940afb39eb67ecea567517fa 02-Jun-2012 Wei Huang <weih@google.com> am d8ca504f: am ebea8dc3: Merge "Stop phantom thread" into jb-dev

* commit 'd8ca504fa27e65a7052ff30d9632a1b71a8daa5e':
Stop phantom thread
d8ca504fa27e65a7052ff30d9632a1b71a8daa5e 02-Jun-2012 Wei Huang <weih@google.com> am ebea8dc3: Merge "Stop phantom thread" into jb-dev

* commit 'ebea8dc30b950e66b215d2f31ee706aae8edad66':
Stop phantom thread
4057a8b18678db0b76a26e80c2626f185a91eea5 02-Jun-2012 Tom Taylor <tomtaylor@google.com> Stop phantom thread

Bug 6593778

Implement a much more targeted fix when deleting all the messages from
a conversation.

Change-Id: I30b949dc752a7dfd5016520cab42d6eb47e05a13
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
449246cebb5bb709c4f2544635a50f3097520652 31-May-2012 Tom Taylor <tomtaylor@google.com> am ec5ba174: am ae4731a4: SMS notification is not always dismissing after selecting notification

* commit 'ec5ba1741e200238b81b88e8a101078c10de07d4':
SMS notification is not always dismissing after selecting notification
ec5ba1741e200238b81b88e8a101078c10de07d4 31-May-2012 Tom Taylor <tomtaylor@google.com> am ae4731a4: SMS notification is not always dismissing after selecting notification

* commit 'ae4731a4976595fb5ed0e055f1a2d101c5ca1ff0':
SMS notification is not always dismissing after selecting notification
ae4731a4976595fb5ed0e055f1a2d101c5ca1ff0 31-May-2012 Tom Taylor <tomtaylor@google.com> SMS notification is not always dismissing after selecting notification

Bug 6569342

markAsRead() wasn't explicitly getting called when ComposeMessageActivity
starts up. Instead, it was relying on onDataSetChanged getting called
*after* the window has focus. With this change, markAsRead always gets
called on startup, whether via onCreate or onNewIntent.

Change-Id: I7a8d5ef163cb6f3d6fb5e91b520e6f1cf9080560
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9ceacf26a1e2999a13f44c4e116666daa3f457a9 30-May-2012 Tom Taylor <tomtaylor@google.com> am 9c7e7951: am 3c297a56: Merge "Messaging app does not scroll while composing message" into jb-dev

* commit '9c7e795175b222fef874d10639045744041863f2':
Messaging app does not scroll while composing message
9c7e795175b222fef874d10639045744041863f2 30-May-2012 Tom Taylor <tomtaylor@google.com> am 3c297a56: Merge "Messaging app does not scroll while composing message" into jb-dev

* commit '3c297a56a9071736cdc966038fb86764e5169551':
Messaging app does not scroll while composing message
f092ccefb6a6b1289a111ea147cd7ace22d5ad5d 30-May-2012 Tom Taylor <tomtaylor@google.com> Messaging app does not scroll while composing message

Bug 6570272

When the compose message field grows, the list needs to tell the
activity so it can smooth scroll the list to keep it at the bottom.

Change-Id: I2f0ff514b71d9736181addfb00ca176b4af5051a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c3ee39b67d12113cc47676e9890f32057d384922 30-May-2012 Jean-Baptiste Queru <jbq@google.com> am 5a5e569e: am 590a5428: Merge "Make the liftcycle of cursor under the Activity"

* commit '5a5e569ed5f0d96f73091c6714a350854de288ba':
Make the liftcycle of cursor under the Activity
5a5e569ed5f0d96f73091c6714a350854de288ba 30-May-2012 Jean-Baptiste Queru <jbq@google.com> am 590a5428: Merge "Make the liftcycle of cursor under the Activity"

* commit '590a5428d6ff905e9ffb21f3451121353f94327c':
Make the liftcycle of cursor under the Activity
bb49471b60cda4726788a6583820f69835fb1307 30-May-2012 Tom Taylor <tomtaylor@google.com> am d5a5cd84: am 12ba1749: Merge "Deleting individual sms message didn\'t work" into jb-dev

* commit 'd5a5cd8417e3d6262d4c76e06dfcfbff0e194fd5':
Deleting individual sms message didn't work
d5a5cd8417e3d6262d4c76e06dfcfbff0e194fd5 30-May-2012 Tom Taylor <tomtaylor@google.com> am 12ba1749: Merge "Deleting individual sms message didn\'t work" into jb-dev

* commit '12ba1749c0f323c5854a025663feb86e35c8ce9b':
Deleting individual sms message didn't work
6f82efcfc934f13b7774a05c8d5ed9fafa2c4fca 28-May-2012 Roger Chen <cxr514033970@gmail.com> Make the liftcycle of cursor under the Activity

The cursors of ComposeCardActivity and ConversationList
were never be closed. So the database will throw an
CursorWindowAllocationException if the cursors which not
be closed are too many to be allocated then the database
will return a NULL cursor back to onQueryComplete().
After that Mms will be crashed by the NullPointerException.

Change-Id: Ib8730b326edf9177bbcce48a42b85405acff51ba
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e41d7c6d4a691888904461264c93f9948f1e20c4 29-May-2012 Tom Taylor <tomtaylor@google.com> Deleting individual sms message didn't work

Bug 6538916

Also fix a bug reported by an external developer where individually
deleting all the messages in a thread, then typing a message (w/o sending it)
and then going back to the conversation list shows "Saving draft" but
no draft or thread gets saved. In addition, I found that if you individually
delete all messages, then type a message and hit send, the thread disappears.
Both cases are due to the fact that when all messages are deleted from
a thread, the thread gets deleted. We need to recognize that situation
and clear the conversation's threadId so the next time the threadId is
needed, a new thread will be created.

Change-Id: Ic3aa8c3bf61709a75b5dd9d172c46fdef73d342b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4e2b8183565e71a872b9d610b0efa4fbef19ae99 22-May-2012 Jean-Baptiste Queru <jbq@google.com> am 72f91d0c: am 06ff7691: Merge "Fix an NullPointerException when finished"

* commit '72f91d0cf3386ab9a263cabfed1675b2d92de909':
Fix an NullPointerException when finished
72f91d0cf3386ab9a263cabfed1675b2d92de909 22-May-2012 Jean-Baptiste Queru <jbq@google.com> am 06ff7691: Merge "Fix an NullPointerException when finished"

* commit '06ff76910981e8e97549ffa3f7df4d28320e6e33':
Fix an NullPointerException when finished
06ff76910981e8e97549ffa3f7df4d28320e6e33 22-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Fix an NullPointerException when finished"
0a29bbc3de8e515e337a23f8a80135dea6daf9cb 22-May-2012 Roger Chen <cxr514033970@gmail.com> Fix an NullPointerException when finished

No need to continue the querying when it was finished.
Otherwise it will be thrown an NullPointerException,
since RecipientEditor need to be initialized after
the querying completed.

Change-Id: Ie96e8c690b2227971bcd10cc4dab72eb0ec3bacf
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
468672662a81dc047a48cc4324342101a7d19b7f 22-May-2012 Jean-Baptiste Queru <jbq@google.com> am 232d9734: am 4897fcb5: Merge "Remove message notification while in conversation ui"

* commit '232d97346349fb3257652dca4fd7cf5041b81fa9':
Remove message notification while in conversation ui
232d97346349fb3257652dca4fd7cf5041b81fa9 22-May-2012 Jean-Baptiste Queru <jbq@google.com> am 4897fcb5: Merge "Remove message notification while in conversation ui"

* commit '4897fcb586999c2830f41d208534c6c09590d0b1':
Remove message notification while in conversation ui
fdcb76d5ef7f79a358fa0cadb20a1a3e74aefb0b 18-May-2012 Tom Taylor <tomtaylor@google.com> am 3453de7a: am 7b6fe946: Old thumbnail shown

* commit '3453de7a011379f1c12e4db47c088560a1fa2121':
Old thumbnail shown
7b6fe946f2e1020432e3600c8863f72449cd4e68 16-May-2012 Tom Taylor <tomtaylor@google.com> Old thumbnail shown

Bug 6490001

DO NOT MERGE
hen a message is deleted, remove the uri from the pdu cache and clear the
thumbnail cache. When a thread is deleted, clear both the pdu and thumbnail
caches.

Change-Id: I361d48fe5430cbf9885656e2fe91ee2f566a25b9
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4addf5f30953b5ee1d8fc14a3440e4ba81f4bb86 10-May-2012 Tom Taylor <tomtaylor@google.com> am d3794cd6: Smooth scroll when new messages are sent/recvd

* commit 'd3794cd6aeb631084eaf0989a6aba46803520177':
Smooth scroll when new messages are sent/recvd
d3794cd6aeb631084eaf0989a6aba46803520177 10-May-2012 Tom Taylor <tomtaylor@google.com> Smooth scroll when new messages are sent/recvd

Bug 5136495

Change-Id: I957200191d1243cc6b4e824ee8208eb3d5a3b55b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
08bb81bd6698cf813713e625e6c3851de847b310 07-May-2012 Tom Taylor <tomtaylor@google.com> am 7fd2c943: Merge "IME overlaps camera for a second" into jb-dev

* commit '7fd2c943d931f609c88c720981e85a4ba259657a':
IME overlaps camera for a second
7fd2c943d931f609c88c720981e85a4ba259657a 07-May-2012 Tom Taylor <tomtaylor@google.com> Merge "IME overlaps camera for a second" into jb-dev
c756eac67b9aa159d954c35f85e6b2062b9a5414 07-May-2012 Tom Taylor <tomtaylor@google.com> IME overlaps camera for a second

Bug 6447431

Hide open keyboard when launching activities for a result.

Change-Id: I6cb08f22ddb170142bbdf65d3166db3e7cb8b688
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8812565d4201fba3bbcd362db24fc2f4bc4b8910 07-May-2012 Todor Kalaydjiev <todor@google.com> am be8c4cdb: Fix quiet notifications: there was a concurrency issue w/ thread ID tracking

* commit 'be8c4cdb145e2919e1b5916355e5a92978e013f7':
Fix quiet notifications: there was a concurrency issue w/ thread ID tracking
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/ui/ComposeMessageActivity.java
36cd40549bd4ef3166fbe451ec51130e83b25c9e 02-May-2012 Tom Taylor <tomtaylor@google.com> am 6bbfdd3c: Messaging app crashed

* commit '6bbfdd3cc9cbe6b31dc64f122f3308563d19e077':
Messaging app crashed
6bbfdd3cc9cbe6b31dc64f122f3308563d19e077 02-May-2012 Tom Taylor <tomtaylor@google.com> Messaging app crashed

Bug 6350665

There's a race condition in Telephony.Threads.getOrCreateThreadId when it
calls MmsSmsProvider.getThreadId. If a user deletes a thread and a message
for that thread arrives at the same time, it's possible for the delete
to remove the thread found in getThreadId. With this change, getOrCreateThreadId
is wrapped by a function that blocks if we're doing a delete. I tested this
technique by adding a 10 second sleep in onDeleteComplete. The SmsReceiverService,
which calls getOrCreateThreadId is fine being blocked, since it does all of
its work on a background thread.

Change-Id: Ia9fc04052adac15c2252034006dd6cdd5c02f108
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9f9c9066c7bab2e9b9aec5935c0d05014b01e012 30-Apr-2012 Tom Taylor <tomtaylor@google.com> am 81f337b9: Merge "Tapping a message should do something" into jb-dev

* commit '81f337b9a136700e78b02ada3cc9a27d4bc228f8':
Tapping a message should do something
3efec5a219021385d816639f5c801c4cd277ae9d 28-Apr-2012 Tom Taylor <tomtaylor@google.com> Tapping a message should do something

Bug 5920525

Tapping a message now shows the details dialog.

Change-Id: I24f9fbfcf82a4c9cbdd29b5a94869cdf781ad864
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
433482450f73811b0f197b5e9197b3adcc831a12 25-Apr-2012 Tom Taylor <tomtaylor@google.com> Merge "java.lang.RuntimeException : at com.android.mms.LogTag.warnPossibleRecipientMismatch"
b1b7ee90078a41caf0508dd13df2416bfce8e023 17-Apr-2012 Tom Taylor <tomtaylor@google.com> Cannot open MMS images

Bug 6349084

Change-Id: I41b6c314622b7c60d10df71d7d6a84b1a5ef0274
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9be0403f8a1399781438b704e96a9c6088add751 13-Apr-2012 Tom Taylor <tomtaylor@google.com> Merge "Wrong image shown in MMS preview"
b8eae066a7ba60722de07300bf990d519f5c81d8 13-Apr-2012 Tom Taylor <tomtaylor@google.com> Wrong image shown in MMS preview

Bug 6104869

A static uri is used for capturing images from the camera. The code needs
to remove the thumbnail from the cache when capturing a new image or video.
In addition, the code needs to make sure it doesn't save thumbnails for
temp files in the on-disk thumbnail cache.

Change-Id: I646368d0f83fb7d6b204b611982a04275d4cd8bc
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
271b5212603ba1424ea2b95732932ab7c2368d14 13-Apr-2012 Tom Taylor <tomtaylor@google.com> Sending a video is almost impossible

Bug 5928519

I was able to reproduce this a couple of times, "Can't attach video" error.
After putting in some debug info, I couldn't repro the problem. Even rebooting,
just like in the original bug, I wasn't able to repro. Adding some log code
to print out the exception next time the bug occurs.

Change-Id: I584ad0ff99a55c91e57fef8c64f40f36ae327a96
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f5454ee8758e087d54c7b2dd6e0e097467c4f03e 13-Apr-2012 Tom Taylor <tomtaylor@google.com> java.lang.RuntimeException : at com.android.mms.LogTag.warnPossibleRecipientMismatch

Bug 6109090

The mDebugRecipients weren't getting updated when sending with the
recipients editor window open.

Change-Id: I8dfffd6d9476953f468aaf3e92be17fd539f6f9c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6ac41e1f86acd6fdd37f72c98ea4dc386a1700b3 10-Apr-2012 Tom Taylor <tomtaylor@google.com> We should not auto convert multiple SMS to MMS messages

Bug 2216705

Restore the functionality of the original fix from:
https://android-git.corp.google.com/g/#change,40101
but keep the behavior from the subsequent CL:
https://android-git.corp.google.com/g/#/c/102637/

With this change, the messaging app's sms multipart functionality is
still controlled by the mms_config.xml flag "enableMultipartSMS". When
this is true, the user can type a message up to 2000 characters and it
will be broken up and sent as parts. If enableMultipartSMS is false, as
soon as the user types more than a single segment (i.e. 140 chars), the
message will be sent as mms. Like the original fix, there's no part
threshold anymore that determines when a long message will be converted
from a multi-part sms to an mms.

Change-Id: I5a70f27876417786a2d79436614cb02cc8c69f82
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2d4b986e57a67eabacc0599219c726de8600836d 07-Apr-2012 Tom Taylor <tomtaylor@google.com> Support "chips" UI for choosing addresses for compose

Bug 5066294

Change-Id: I3e50b25587c15663514e20bb18c5dba22be499f8
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4cab16e396f9f5381e14121011d55a7c12e3c317 06-Apr-2012 Tom Taylor <tomtaylor@google.com> Empty forward draft not removed

Bug 6222154

A number of problems to fix for this relatively innocent looking bug.
First, the PDU was getting persisted on the UI thread. Second, persisting
a PDU automatically creates a thread, but on the forwarded message side,
the thread id wasn't getting set. Since the thread id was zero, the
working message code didn't think there was any draft to delete.

Change-Id: I3021b864bdf9876eb8c66e4048295516b085406f
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
661957caeb3110ae3328a995edd467ceedc07a36 05-Apr-2012 Tom Taylor <tomtaylor@google.com> ANR on the Messaging application, when editing the attachment

Bug 5973755

When slideshows are involved, there's the possibility of an ANR because
the slideshow is saved on the UI thread. With this change, the heavy-duty-
disk-writing work is done in a background thread. If the task takes longer
than a half second, a modal progress dialog is displayed. The various
target activities, such as SlideEditorActivity and SlideshowEditActivity,
still read/save the PDU on the UI thread. They should use the PduLoaderManager.
A separate bug has been filed.

Change-Id: I384968d406fe10e192abf1614e3ce0b27f20c93d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d3bf0ec216693b4143bc304a17e3bc2e36a81ab0 03-Apr-2012 gilles le brun <gil.lebrun@orange.com> Remove message notification while in conversation ui

While composing message, on data set changed, such as new
incoming message, remove from notification bar any
notification regarding the current conversation.

While display list of conversations, on query complete, such
as new incoming message, remove from notification bar any
notification regarding the whole list of conversations.

Change-Id: I806d4a921ed13af3db07f1e55b0fc5ba021ea0ad
Signed-off-by: gilles le brun <gil.lebrun@orange.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
365bd94c0d80a3ac8d48136c40a5ea3d1514df99 29-Mar-2012 Tom Taylor <tomtaylor@google.com> Merge "Messaging App crashes/phone becomes unresponsive"
6a53d30825817a8e70a3da0e591449377306959a 29-Mar-2012 Tom Taylor <tomtaylor@google.com> Messaging App crashes/phone becomes unresponsive

Bug 6175605

Threads were getting created out of control. Greatly
simplify markAsRead and associated code. Use an
AsyncTask (which uses a thread pool) than a bare
naked thread.

Change-Id: Icd1b56a36f45c5d47f30d071fb967b3dca8a6c9b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
08712ce9d30d4f28476436b218f2b76c7bdfb89c 29-Mar-2012 Tom Taylor <tomtaylor@google.com> Don't load draft on the UI thread

Bug 2475394

Load the draft off of the UI thread and then show
the editor. In most cases, you can't see any difference.

Change-Id: I7c2aedb0628a6efcd6355f888b4c9f6bb19fcb45
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cfe68b0edf81bddbaf1e0c11dcab4bb3a5ce3da8 29-Mar-2012 Tom Taylor <tomtaylor@google.com> Long tap on messaging thread second time shows ANR

Bug 6247313

Don't go into PDU code unless we've got an mms message.

Change-Id: I28965ac7390aa65d35a8f09dc25b3edc582e3427
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
0ecc26df09777835cfa8dbfd3c48ca7b7fa7f011 27-Mar-2012 Tom Taylor <tomtaylor@google.com> Use the new DRM scheme in MMS

Bug 5158047

Change-Id: Id5d0ed03816b70c9f06b98af982cd5afb9af38d5
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
28af0405f300b050bed3b4649ad777bde8f28971 19-Mar-2012 Tom Taylor <tomtaylor@google.com> Strict Mode violation: not closing cursor

Bug 6193456

There are a few places in onQueryComplete where the code isn't
closing the returned cursor.

Change-Id: I25fe762e12a4d020648edf4b7a3d3f016feb5de1
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
51e4621fa12400b1e79cc18b7bb0f9a83af6b622 27-Feb-2012 Tom Taylor <tomtaylor@google.com> Scroll jank when scrolling MMS images

Bug 5919625

Load PDU, slideshow, and images in the background.

Change-Id: I456ba8e0044a902af7310427f3172441f40cf215
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c7797433b1641be0cb77e02541b8bfed94c48835 07-Feb-2012 Tom Taylor <tomtaylor@google.com> MMS appears after delay in the thread

Bug 5032682
Bug 5939766

When sending an MMS, immediately insert a placeholder pdu in the pdu table
that'll show the user that we're in the process of sending the message.
Also fix a bug where typing a single char wouldn't bring up the contacts
search results.

Change-Id: I2f6f14048a07360b69a2529e8a61c524a753485c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
441ba1b7e58c737c090f646c5e32df06644d1b4a 26-Jan-2012 Tom Taylor <tomtaylor@google.com> am 7b55af4a: am 2a2e37b3: Not able to call a number that isn\'t saved in contacts, when pressing the call button from messaging app

* commit '7b55af4a267a4aca74ffcbac876deb90cf9937b2':
Not able to call a number that isn't saved in contacts, when pressing the call button from messaging app
2a2e37b3cf7d67e837da1786dd677ce5dd2921d4 26-Jan-2012 Tom Taylor <tomtaylor@google.com> Not able to call a number that isn't saved in contacts, when pressing the call button from messaging app

Bug 5922602

Don't build the options menu until after the visibility of the recipients
editor is determined.

Change-Id: Ie70019808b130f5ac982285a48b537dce60ca914
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4a44fb2e6796db816197842f48514fcf08fb0c07 12-Jan-2012 Tom Taylor <tomtaylor@google.com> SMS number input should auto-format like the dialer does

Bug 5851956

The recipients editor will now auto-format the number as the user types.
This only works on the first recipient, which is going to handle the
majority of the use cases. Holding off for now making it work with
multiple recipients until we decide whether we're going to implement
the "chips" ui (see b/5066294) for selecting recipients. While this
new code only works for the first recipient, it doesn't affect adding
additional recipients -- that works the same way it always has.

Change-Id: I9552997721829a5a84f15e6b5a3438639de88602
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c0b938e899f202ba9f4ac9bd2b5736b7f96c5b57 11-Jan-2012 Tom Taylor <tomtaylor@google.com> Use libphonenumber for testing whether an address is a phone number

Bug 5855222
"Add to contacts" wasn't showing up in the ComposeMessageActivity menu
for German numbers containing slashes. The phone number checker in
Telephony.Mms.isPhoneNumber() is too simplistic. The code is now using
the sophisticated libphonenumber for testing phone numbers.

Change-Id: I6ea8c463e6bc7496e8c483c465b16ef860f2c9fc
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
636c0377b67b870a096902950e5b2776d3ad5fed 10-Jan-2012 Todor Kalaydjiev <todor@google.com> Merge "Remove some dialog icons and titles as per b/5446108."
1b1af7c751218e380bd119629ff9a652157fbb21 10-Jan-2012 Tom Taylor <tomtaylor@google.com> Weird refresh in list of smses showing only numbers for a second

Bug 5649763
When deleting a thread, the code was rebuilding the whole contacts cache
and threads would only show numbers while the contacts were loading. This
is normally only visible for folks with a LOT of conversations. With this
change, deleting a single thread only removes the associated contact(s)
from the cache.

Change-Id: Ia31f9fdcb3654461d93ed5de205a28ab5389a865
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
37fcee8d52f7fa928b04cd34709eddf7a247fbed 21-Dec-2011 Tom Taylor <tomtaylor@google.com> Wrong message deleted after changing device orientation while deleting a message

Bug 5787017
When a longpress menu item was selected, the old code relied on the cursor
being the same as when the tap took place. When the device orientation is
changed, the adapter rebuilds the list and the cursor is left at a random
position. With this change, the code saves the tapped message item and
ultimately uses the actual item when/if a menu item is selected.

Change-Id: I2f5af609b2ac918f1ffe613fc8e5397afff5ce64
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ee69ec2f1de67eccd80d221462d5e142c34a5576 20-Dec-2011 Tom Taylor <tomtaylor@google.com> Copy text message sometimes does not copy the right message

Bug 5778889
I wasn't able to repro the bug, but the code was using a deprecated
ClipboardManager and api. With this change, we're using the "new"
ClipboardManager and correct api to put text on the clipboard.

Change-Id: I8081aa5edd45b82840da4d798761da98c904ee39
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1fa5ccab1de955de3dc2a8ae45db459644fe1d3d 07-Dec-2011 Todor Kalaydjiev <todor@google.com> Remove some dialog icons and titles as per b/5446108.

Change-Id: I4d967e756f62c8a333643beaf2132e7d6f72b573
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a938871add9311f5c038d1b3e4e2d518c246a612 14-Nov-2011 Tom Taylor <tomtaylor@google.com> am b5a54885: Merge "Revert "5198894 Remove saveInstanceState"" into ics-mr1

* commit 'b5a54885cbe412fb00f58fc4d19695cd42096e33':
Revert "5198894 Remove saveInstanceState"
a95e267c5e123139f4551758586b1f44ef02f9d2 11-Nov-2011 Tom Taylor <tomtaylor@google.com> Revert "5198894 Remove saveInstanceState"

This reverts commit 7d128943d1b6377fdbe399eb919970ab9544867e.

At the same time, it fixes bug 1556157, where a picture sent via mms
from the camera, will show up again in a draft when ComposeMessageActivity
is killed and restarted. That behavior was caused by the fact that when
an activity is re-created with an instance bundle, it's passed the
original intent to attach a picture. With this fix, we don't try and
reattach a photo. In addition, killing the activity and restarting will
restore the activity to its pre-killed state (i.e. preserve the message,
subject, etc).

Change-Id: I2059d289bce6f40f11c286436c2fa0971d0ff273
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
0985d55731e130b5f5c8c4a276a68c8979d09f42 08-Nov-2011 Tom Taylor <tomtaylor@google.com> am 46174f77: Merge "Delete thread option is missing in thread view" into ics-mr1

* commit '46174f77e55fb363b4e5358cfde6aabc365fc7dd':
Delete thread option is missing in thread view
ceda222ba8264279579b5b4179b43627bf082886 07-Nov-2011 Tom Taylor <tomtaylor@google.com> Delete thread option is missing in thread view

Bug 5579851
Some options depend on the number of items in the adapter. When a
query completes, invalidate the options menu.

Change-Id: Ib3c23e9b9ed4aa1a890c011b625fdf7c7f52c29d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
dde05deaeef09bd3a89f2ef88e5fe90b7a26e1d0 02-Nov-2011 Tom Taylor <tomtaylor@google.com> am 60e0f6dd: Merge "Crash after capturing photo for attachment" into ics-mr1

* commit '60e0f6dd7d2631156fdaf1a2b9cf87cd3608edf0':
Crash after capturing photo for attachment
477694853685272b4ec88a7777299eed62531e9f 02-Nov-2011 Tom Taylor <tomtaylor@google.com> am 04e62d0d: Merge "Sometimes the Call icon doesn\'t show up" into ics-mr1

* commit '04e62d0d7725810ef6b1e62dc47faa3dca1eba67':
Sometimes the Call icon doesn't show up
60e0f6dd7d2631156fdaf1a2b9cf87cd3608edf0 02-Nov-2011 Tom Taylor <tomtaylor@google.com> Merge "Crash after capturing photo for attachment" into ics-mr1
fe6d47bdde300818a1f8f3cbf3db00227e86e261 01-Nov-2011 Tom Taylor <tomtaylor@google.com> am b6b2ee07: PduBodyCache.getPduBody cache not cleared

* commit 'b6b2ee07c9261504376401070fcfdf09879e7eeb':
PduBodyCache.getPduBody cache not cleared
1450f3f35f29fbf8b2701dc8e8bceda326fbfced 01-Nov-2011 Tom Taylor <tomtaylor@google.com> Crash after capturing photo for attachment

Bug 5546073
If the Mms app was killed or died while taking a picture, the call to
MmsApp.getApplication() would return null and the provider would crash.
With this change, use the context of the provider or the activity,
rather than the app's context.

Change-Id: I787ea375fefa0d94ee2c04bc023c7b115c12d70a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
45d47b4cefba0afb4d4da5fb1505f8515b2792f0 01-Nov-2011 Tom Taylor <tomtaylor@google.com> Sometimes the Call icon doesn't show up

Bug 5545195
The Call icon is added to the menu in onPrepareOptionsMenu. That only
gets called when the activity is created and when the user taps on the
menu button. However, some of those menu items are shown on the action
bar so we have to dynamically update the menu items. Whenever we set
the conversation in the working message, update the menu bar.

Change-Id: I9fd09f851b17c05704e82d93a754541c1b3f6a00
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e1d4366bbd7deb4930da84f3dd9be38fa5d2bb86 31-Oct-2011 Tom Taylor <tomtaylor@google.com> am c45aa327: Merge "Monkey-found NPE" into ics-mr1

* commit 'c45aa327cfce83f5ff6a2c34c1684c0c1f3a58df':
Monkey-found NPE
b6b2ee07c9261504376401070fcfdf09879e7eeb 31-Oct-2011 Tom Taylor <tomtaylor@google.com> PduBodyCache.getPduBody cache not cleared

Bug 5526870
The PduBodyCache was never getting cleared. If you deleted a message
and then added a message and they had the same id, we'd return the old
pdu of the deleted message. It turns out that the PduBodyCache is
redundant because the pdu is already getting cached at a lower level in
the PduCache. Make sure we delete the cache entries associated with
individual messages and threads when those messages and threads are
deleted. While stepping through the change in the debugger to verify
it, I found that the new temp file names that start with '.' stripped
the filename incorrectly.

Change-Id: Ice4e453470eb1186ea69ebe6eca750bb230c5205
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
da97c56fd38b125f086ccd381c64ccd6c0618822 28-Oct-2011 Tom Taylor <tomtaylor@google.com> Monkey-found NPE

Bug 5531640
Test for null working message before deref. The monkey can click on the
edit button and then the remove button before the edit click handler
can process editing the item (which has been removed).

Change-Id: I12e34de31a1a458c3f542b7016ac2c71dc43e827
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2dd16597ea77c4db218202d29646066eccf12ae9 27-Oct-2011 Tom Taylor <tomtaylor@google.com> MMS attachments now load asynchronously while ui shows progress dialog

Originally a bug fix for MMS attachment progress spinner
Bug: 5473834

Loading attachments used to happen on the ui thread.
This was bad news bears for loading times > 1 second
(a specific case being Picasa photos).
Now loading attachments now happens in the background while
showing a blocking progress spinner in the ui. The
spinner only if loading takes longer than .5 seconds.
This applies for Images and Video, both for Messenger
retreiving media as well as receiving an intent.

This is a cherry-pick from master.

Change-Id: Idd927cdcf0135507bee2e8f708f14946a28d0ea1
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
078d576afb60a230aa880e5462bf1c4a48c9499c 26-Oct-2011 Tom Taylor <tomtaylor@google.com> Send button looks the same enabled or disabled

Add new disabled send button assets and build a selector to show them
for sms. For mms, it's more complicated since we're using a TextView
and a bottom drawable. We have to make that change in code. Typing in
the subject editor needs to update the send button state.

Change-Id: If84fa711ef49ab3740b47a61aee3b296a3924045
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d0c236130a1efd6025391e583330b5cd50ff1d3c 24-Oct-2011 David Mailhot <djmailhot@google.com> Merge "MMS attachments now load asynchronously while ui shows progress dialog"
c6d957b7553e26531c23ab1359019c7c2b4cee71 18-Oct-2011 David Mailhot <djmailhot@google.com> MMS attachments now load asynchronously while ui shows progress dialog

Originally a bug fix for MMS attachment progress spinner
Bug: 5473834

Loading attachments used to happen on the ui thread.
This was bad news bears for loading times > 1 second
(a specific case being Picasa photos).
Now loading attachments now happens in the background while
showing a blocking progress spinner in the ui. The
spinner only if loading takes longer than .5 seconds.
This applies for Images and Video, both for Messenger
retreiving media as well as receiving an intent.

Change-Id: I09ac701a8cefe3dc0c3d0dc91b0a77933854872c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
723191847a7438340c5a319afeab1ae8581f3e3d 21-Oct-2011 Tom Taylor <tomtaylor@google.com> Download attachments are not saved in correct folder on sdcard

Bug 5491310
When saving the content of a local slideshow (one the user sent rather
than one received), the location of videos is a temporary location
on the sdcard. Don't use that location as part of the destination
file, rather just use the leaf filename. With this change, saving
any mms (whether sent or received) saves all the parts in the standard
Download directory.

Change-Id: I3b993865298adbcd9518a446514ff687052aba81
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b98717aa6a2a044d7e72c5a086cd7538fc94ad19 21-Oct-2011 Todor Kalaydjiev <todor@google.com> am 48a2beb6: Merge "Revert "Don\'t save draft with no recipients"" into ics-mr0

* commit '48a2beb69fab7cfa52f882569c55a07c7d66c95f':
Revert "Don't save draft with no recipients"
8589be5e42dc7b401a092c232b1bf72eceb82bae 20-Oct-2011 Todor Kalaydjiev <todor@google.com> Revert "Don't save draft with no recipients"

This reverts commit 3a453f0ee6d19940faf307163f827ce03d0ec933.

The revert is due to b/5471420. The original bug that this change
was fixing was b/5421126, but I think there was a misunderstanding
there about what the behavior should be. In any case, the crash is
worse than the old behavior, so reverting seems the right thing to do.

Change-Id: I7e462871f15737ae73f55d817dde038fa3fb4f84
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c587892d1ee318d6b4ffcb5f4ad1c995dbeeeaf7 20-Oct-2011 Mark Wagner <mxw@google.com> bugfix 5486716 Remove dialog titles in confirmations

Change-Id: I3db94695a5efa996675669c750c93a55d4d3a2a4
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f8a3cd920a3728de438b309f6cee2d135a0323aa 19-Oct-2011 Tom Taylor <tomtaylor@google.com> am fe0faf65: Can\'t add smiley to subject

* commit 'fe0faf65c654a87d4d5de8d87713364fcf786a3f':
Can't add smiley to subject
fe0faf65c654a87d4d5de8d87713364fcf786a3f 19-Oct-2011 Tom Taylor <tomtaylor@google.com> Can't add smiley to subject

Bug 5453810. Bug 3382512
If you use the menu to add a smiley when the subject editor has the focus,
the smiley will be added to the message body instead. That's now fixed.
Smiley icons are now displayed in the ConversationList and in the
subject of messages. The nose-less smiley icon :) is now parsed as
"happy" like it is in Talk.

Change-Id: I2685fd7946881aceb89617cf54c4de0b5a17650e
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
7d71c1feb0137b10317f4f04644f6e498bfd10ed 18-Oct-2011 Tom Taylor <tomtaylor@google.com> Insert smiley option in slide show doesn't add any smiley

Bug 5471993
Hide the smiley menu item when the user has attached a slideshow
because there's no message field to type into with a slideshow
attachment.

Change-Id: Ie12a6f144f952dbaba38bacbe3a9f6e302ab5bbf
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
31211022788b79df469cb39d993e6e99ad8512eb 14-Oct-2011 David Mailhot <djmailhot@google.com> Merge "Show progress spinner when loading MMS attachments"
1a36d4be0ece8d887cce4ebdbc86e170c42c5cbb 12-Oct-2011 David Mailhot <djmailhot@google.com> Show progress spinner when loading MMS attachments

bug: 5354767
When attaching to an MMS, loading of the media is done on the UI thread.
In the case of Picasa photos, loading can take several seconds. Therefore,
this fix loads attachments in the background while a progress dialog is
displayed on the UI. The dialog blocks user input, and appears only after
.5 seconds. The fix has also been applied to video and audio attachments.

Change-Id: I30ab8b4aa3c91b4c401ab89c17e72efb84860879
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6767962317b959aa656c61741b1c1de4f9530f99 13-Oct-2011 Tom Taylor <tomtaylor@google.com> Draft slideshow getting deleted while playing

Bug 5447174. Bug 5455435
If the user watched a slideshow when the message had no recipients
and the thread contained no other messages, the parts of the slideshow
would get deleted in CMA's onStop.

Change-Id: I89300afec076043306b315f82939cbdb2ed6279a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
be65237538ad1ad0c949d50c005be7d4423730cf 11-Oct-2011 Mark Wagner <mxw@google.com> Merge "bugfix 5437891 BACK/UP behaviors when accessing a thread view from outside Messaging"
ff323fd895e6a3734464cfd2a640a85e20d612ac 10-Oct-2011 Mark Wagner <mxw@google.com> bugfix 5437891 BACK/UP behaviors when accessing a thread view from outside Messaging

Change-Id: I2819400ab24d0339603bc9c9689918d70e4f3496
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
34396f17239fc1893e8e3c8e157e10c362df9e53 10-Oct-2011 Tom Taylor <tomtaylor@google.com> [MMS Test Plan] DUT allows user to enter only 40 characters into subject area

Bug 5421258
Add "maxSubjectLength" to mms_config.xml options to allow a manufacturer
to specifiy a different max length for the subject field other than the
default of 40 characters.

Change-Id: I5622e7bd7066c28b8eaea81c93718b0aff07aca7
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f0752096c054ba3913d78df35d0037213478a9da 07-Oct-2011 Tom Taylor <tomtaylor@google.com> Merge "[MMS Test Plan] DUT cannot update the recipient field with newly saved name for previously entered number"
75d218c77bd806346b8328e26b06c68a0b6dedd1 07-Oct-2011 Tom Taylor <tomtaylor@google.com> Selection drawing problem

Bug 5401556
The code that was drawing the background lines around the message list
items was also drawing a background and that was hiding the selection
highlighting. We don't need to draw the background in that code.

Change-Id: I0d4c1438bab1f63921587b910031bdee13cdb7b1
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
24f3447b5fc91b26864859caa33502b937768fdf 06-Oct-2011 Tom Taylor <tomtaylor@google.com> Merge "Contact information cannot be added as new contact"
ca6f907a83cc29602cea7c134a65d02abe70290e 06-Oct-2011 Tom Taylor <tomtaylor@google.com> Contact information cannot be added as new contact

Bug 5386496
Restore "add contact" functionality that was removed in bug 5054233.


Change-Id: I7c177fb7ba974b4473f3f0f400bb67f09628aa09
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
682540801e82eacf59fe809ad6ecfbab44f702e2 06-Oct-2011 Tom Taylor <tomtaylor@google.com> [MMS Test Plan] DUT cannot update the recipient field with newly saved name for previously entered number

Bug 5421255
When backing out of contacts after saving the new contact, we're getting
an activity result of canceled. Always update the contact when adding
a new contact.

Change-Id: I44eeb44d5f1d78647e342627c07690ce739305c6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3a453f0ee6d19940faf307163f827ce03d0ec933 06-Oct-2011 Tom Taylor <tomtaylor@google.com> Don't save draft with no recipients

Bug 5421126.
If you create a new message and type something or attach something,
but don't add a recipient and then select the notification of a new
message, we'd save the draft of the message. The draft would be saved
with no recipients. It looks bad in ConversationList. Normally when
the user backs out of CMA in this state, they're prompted with a
warning that the draft will be discarded. In this bug, however, CMA
doesn't get the opportunity to wait while the user confirms the
tossing of the draft. The solution with this change is to not
save a draft with no recipients. Tested a previous bug in this area
5127453 to verify no regression of that bug.

Change-Id: I6be813e241921af49beb497092be8f2cacb23abb
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2fddde28ed2ccb3c156d596160e3a504c83ce444 05-Oct-2011 Tom Taylor <tomtaylor@google.com> Video captured from Messaging app is left in Gallery

Bug 1659270. Bug 5410499.
Instead of capturing a video and leaving the temp video in the gallery,
pass the camera a uri to store the video data. Also fix a bug where
captured pictures weren't getting their temp files renamed to a name
that included their slide number.

Change-Id: I83c0edc506d384f789a7a9ca98bf3ad5f50b361f
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
05d9ded093b1a13fd36a645fb43caea03ad7c511 30-Sep-2011 Tom Taylor <tomtaylor@google.com> Merge "My photo isn't displayed next to messages that I sent"
4f1871e8e85598c94d5f09d508c690c41fdcce16 30-Sep-2011 Tom Taylor <tomtaylor@google.com> My photo isn't displayed next to messages that I sent

Bug 5361233. Bug 5226635. Bug 5383721.
Add the concept of a "Me" contact to our contacts. It has the correct
uri of the profile so fastrack works. Also, it will load the profile
regardless of the state of the user's phone number. Tapping on your
own quick contact badge will show the profile.

Change-Id: Ib6ea288c9596a001f167a151aaeec6fe2c7c8e2c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9aeb4e9e6aebe9d99cf817cedbdeb0bb0ae5a024 29-Sep-2011 Mark Wagner <mxw@google.com> bugfix 5381702 MMS app puts temporary files on sdcard in wrong location

Part B of a two part checkin to fix this to use the system provided location
for temp/cache files.

Change-Id: I03764c25d5d1f8bbdc1b30ef5168128922bf0792
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
edf2ce120afd84ee25fc4b0dd7c26d9d7efcb839 29-Sep-2011 Tom Taylor <tomtaylor@google.com> Subject field disappearing

Bug 5374452

Change-Id: I2fb9dbdefd0219e0a2f36f27118ce4d71450bbe6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9ab32be08949d7d434d23511e71a226e1cbcb3ed 29-Sep-2011 Tom Taylor <tomtaylor@google.com> Allow messages with just a subject to be sent

Bug 5374045

Change-Id: I11d21adeae0d9ce1b5e196aa03cd6bd0a23d8f12
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2ddc2c0585fec6fca59acc115e26dc51f69aacc5 28-Sep-2011 Tom Taylor <tomtaylor@google.com> Weird phone number stored in canonical_address table

Bug 5375782.
Very tricky bug. In the recipient editor, we always leave a trailing
comma to make it easy for users to add additional recipients. When a
user types (or chooses from the dropdown) a new contact Mms has never
seen before, the contact gets the correct trailing comma. But when the
contact gets added to the mms's contacts table, contacts sends out an
onUpdate to CMA. CMA would recompute the recipients and since the
recipient editor was still visible, call mRecipientsEditor.populate(recipients).
This would replace the recipient that had a comma with a recipient
without a comma. When a user manually added a new comma to add another
recipient, this would eliminate the span inside the text. The span contains the
number part of "Fred Flinstone <123-1231>". Hence, the whole
"Fred Flinstone <123-1231>" would be considered the number of
the first recipient and get entered into the canonical_addresses table.
The fix is very easy. All recipients have commas. There's also a change
to rebuild the contacts cache when we delete a thread. We do that because
the provider is now deleting stale contacts when threads are deleted.

Change-Id: I8fdde2ba64e934c9b539fa0fae433ef23fd254bc
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3877692b0f782ca321ce3a857b4168f771cf2ab6 27-Sep-2011 Tom Taylor <tomtaylor@google.com> java.lang.IllegalStateException: save() called after discard()

Bug 5372845
How can the monkey find this? Well, it can click on the menu "Delete thread"
and then click on anything else that'll cause saveMms to be called before
the onDeleteComplete callback gets executed. We've had this intentionally
thrown exception in the code for years and we're confident that we're
not trying to save deleted messages. With this change, we now do what we
do in saveDraft and that is bail out when the working message has been
discarded.

Change-Id: I262b7c153add3ebbed1044f4c51fe6899b963cd8
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1d44c746de1c0fbe8907cda781463874aa4986a0 23-Sep-2011 Mark Wagner <mxw@google.com> bugfix 5361613 "Up" from a mms/sms reached from search results should return to search results

Change-Id: I8db5cadafd581330a78f7ad83955edcc01ea9142
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5fd2543851375fc764495584ddd319f5e7d13cb9 22-Sep-2011 Tom Taylor <tomtaylor@google.com> A cleaner fix for draft saving

Eliminate the window of vulernability where a thread can get deleted
while saving a draft.

Change-Id: Idb5bf9860f39c59d9391176fd2f6c081086d0d76
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ef3eb49cde359d36f9536dbaffe5c16f3639c1f2 22-Sep-2011 Tom Taylor <tomtaylor@google.com> Fix a number of draft-related bugs

This CL contains a number of draft-related fixes. One is timing related.
While we're building the PDU for a draft, particularly a big PDU that
involves image resizing, the thread gets created first, before the PDU.
Meanwhile, ConversationList can finish its first query and delete any
empty threads. We guard against that several ways, but even still I
see cases where the thread gets deleted while the PDU is saving. When
that happens, pdu persister creates a new thread. Our working message's
conversation would still point to the old thread id. With this change,
we get the possibly new conversation after updating the pdu. Note that
all of these cases occur when this is a draft or the first message
in a thread. Also, there's a better fix for the zombie draft bug. We were
initiating deleting drafts when we cleared the conversation between message
sends. This sometimes caused us to delete the draft we were in the process
of sending. Now draft deletion only occurs at the end of sending. There's
still a small timing window where the draft can get deleted. That'll be
fixed in an upcoming CL.
Bug 5340360. Bug 5343360. Bug 5299114. Bug 5353623. Bug 5354900

Change-Id: I0f661959aed38d59daf5fa27b1f006953e15b80a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
75c138df5db38cdd9fd88e8030038fe8ece142c0 20-Sep-2011 Tom Taylor <tomtaylor@google.com> Send button highlighting looks wrong

Use two different buttons; one for sms and one for mms.
Bug 5056106

Change-Id: I29ce96aa8573a65c458e986e795f7b52db43a18d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a275278b66b40e719573293587062e16ad00b090 19-Sep-2011 Tom Taylor <tomtaylor@google.com> Add titles to actionbar items

Bug 4979142. Bug 4979040

Change-Id: I256d8fffc5e825a78d523c65bf20614d79cfb3ef
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c1342c003f027f564b44b4f4f93d6a6e780aa1c7 18-Sep-2011 Tom Taylor <tomtaylor@google.com> SMS messages being delivered to wrong contact

When we observe the conversation cache is out-of-date, update
the conversation in the cache. Also, fix a bug removing an attachment.
The old pdu wasn't getting deleted. Bug 5319828

Change-Id: I46dbc698a76d4f8bc8fe2a93a967df410a4f557a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
df041b7b2d335c21947c7264b304b4b8d5a17080 17-Sep-2011 Tom Taylor <tomtaylor@google.com> First sent message doesn't show up

When we're clearing the conversation between message sends, don't
reset the threadId to zero if there are no messages -- that's the state
we're in when we send the first message. Bug 5334855

Change-Id: Iafd3f77cbad55a5cd4a45074339c4e41c3d742e4
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5e01ff805c814582f7d48bf388038d7b5a00bbd4 15-Sep-2011 Tom Taylor <tomtaylor@google.com> Handset shall display SUBJECT text field after rotating handset

Bug 5313491

Change-Id: I686069eb61e2e1ba9a84d5796a22b042a6347064
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
dbb58454542a3f2a1da5379b889d0e3776881ae2 15-Sep-2011 Tom Taylor <tomtaylor@google.com> Zombie draft can't be killed

The Mms draft wasn't getting deleted in WorkingMessage.clearConversation.
Bug 5313637

Change-Id: Iea14cc6d16922060b9791943548fb6dd8dbff99d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
fcca7b38fcc90a781f1507a0a135a64e3ae8f6d8 14-Sep-2011 Tom Taylor <tomtaylor@google.com> Attached picture is not saved in drafts when a received message is opened from notification bar

Our mConversation.sameRecipient() code didn't work on uri's from
notifications that contained a threadId instead of a number. Therefore,
an incoming message never matched a new draft that had a threadId of
zero, even when the recipients matched. When we decided a conversation
matched, the code didn't update itself or the working message with the
updated conversation that has a valid threadId. Bug 5250265

Change-Id: I6c97d5c53cf75d97b652b7635020c2cb30855761
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8b24ad098ba6f02552cc9ba04959197182c796d4 01-Sep-2011 Tom Taylor <tomtaylor@google.com> "Draft" appears on every conversation

Bug 5247427

Change-Id: I9f58066b074cf9158ae69b53a6f7e67a80d59c81
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d5153a297b77f1c1e002098d668acc490bc4bd72 01-Sep-2011 Tom Taylor <tomtaylor@google.com> Able to create a draft without a recipient

Don't save a draft with no recipients. Bug 5233173

Change-Id: I4fdde75e313a4e4029a69e34bec4df6691ea7597
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
41a3cc53153bb50493688d4ae8a2a799b968c320 31-Aug-2011 Tom Taylor <tomtaylor@google.com> Add margin buffer to bottom of message list

Bug 5151145

Change-Id: Id5674ecdc06b23793c79c574977ebea6346720d2
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
136fe3767b8cb5dc0575992f2f6951c8451ee5e2 25-Aug-2011 Tom Taylor <tomtaylor@google.com> Messaging search should follow new search patterns

Show home as up on search results. Remove search menu item when
in search mode. Bug 5080823

Change-Id: I4734f87e6893c6ed942f92f0b16dbbffde64fb3b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
7d128943d1b6377fdbe399eb919970ab9544867e 23-Aug-2011 Tom Taylor <tomtaylor@google.com> 5198894 Remove saveInstanceState

ComposeMessageActivity has code in onSaveInstanceState to save
the working message, the recipients, and uri to the bundle.
In onCreate, this bundle was used to restore the conversation
and working message, regardless of the current intent. Since
the code is already saving and restoring the draft, let's
remove the saveInstanceState code. Bug 5198894

Change-Id: I038269020e4f02e1390b3a62a13278cfd72303ac
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
7e6adccb88b19c52a4eb495da4ce35e5cb22a3fa 18-Aug-2011 Tom Taylor <tomtaylor@google.com> Merge "Remove FULLSCREEN mode"
64df78ef24894abac6d3123a2d9edfd283ac991e 18-Aug-2011 Tom Taylor <tomtaylor@google.com> Merge "Message app: Inconsistent state"
90068e6d9d2a9303377f6bd34ef8eb3537070e47 18-Aug-2011 Tom Taylor <tomtaylor@google.com> Remove FULLSCREEN mode

The bug now says to hold off on FULLSCREEN mode. Bug 5121936

Change-Id: Ifd59033c3b9ba9af6b88d536ffd815e20711a79a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d1c99d27494cac726cd6566238f0a1c576c4e759 17-Aug-2011 Tom Taylor <tomtaylor@google.com> Message app: Inconsistent state

The messaging app died and was restarted by selecting a mms notification.
The app was restarted with a saveInstanceState which loaded conversation A.
Then the app was handed the new intent from the notification for
conversation B. Meanwhile, conversation A's query finished, but the threadId
no longer matched that of conversation B. When the code starts a new
query, it tries to cancel any pending queries, but the docs says that's
not a guarantee. We now detect this state and restart the query to match
the current conversation. Bug 5179301

Change-Id: I04df8dc90c2ee152d255ba42a1a699106e03a2a4
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
039f56906f434d766bad6c7c5305c08381f16bec 17-Aug-2011 Tom Taylor <tomtaylor@google.com> In landscape, use full-screen

In ComposeMessageActivity, go fullscreen when in landscape. Always
turn off extract mode. Bug 5121936

Change-Id: Ib9b5c9b67bc9fd73ae03c8239feb5200b4ec2e99
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1c99c8f732b7449347a54d744cb8d3d41c1f796a 17-Aug-2011 Tom Taylor <tomtaylor@google.com> Cleanup "Message options" dialog

More shuffling. Bug 5139850

Change-Id: Ic7a896cc6a5362d40ff0f8e27e83183471411022
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
43f66a57ba57f2540c95a30a222e74d033938ddf 16-Aug-2011 Tom Taylor <tomtaylor@google.com> Merge "Merge debugging messages and tools to master"
e2afd15427a53f63ba4636e15812de9fdfce369d 16-Aug-2011 Tom Taylor <tomtaylor@google.com> Cleanup "Message options" dialog

Bug 5139850

Change-Id: I3e89eef297f6c53649cdc891ad00a59a9cbb9c5d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b3217a6ddcd9455968de7078bfbc0a901b4ff705 16-Aug-2011 Tom Taylor <tomtaylor@google.com> Merge debugging messages and tools to master

Merge the newly added debugging messages and database dump tools from
gingerbread into master. Bug 5133439

Change-Id: I191960a79c7dc60f7e5f731ab952f06c5c9383c4
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6d38b19aa9aef46afa855187f23e44d4c06f8878 11-Aug-2011 Tom Taylor <tomtaylor@google.com> Add new send sms intent

Add a new intent to send an sms message without any UI interaction.
Presently, the Messaging app can already respond to intents with
the android.intent.action.SENDTO action, but this brings up the
ComposeMessageActivity primed with a destination and message. It's up
to the user to review the message and hit send. This new intent will
send the message to the user without the user seeing the compose screen
and having to hit send. Apps could already send sms's by talking
directly to the SmsManager. Using this new intent, however, has the
benefit of adding the outgoing message to a thread so the user will
be able to see what was sent. In addition, sending a message via the
Messaging app compare to the SmsManager will add automatica retry when
there's no connection, etc. This new feature could be used by the phone
app so the user could easily respond to an incoming phone call by sending a canned sms that
reads, "I'm busy, but I'll call you right back." A caller of this new
intent must have android.permission.SEND_SMS_NO_CONFIRMATION. An
accompanying CL adds the private permission to the framework.
An included test app tests the feature. Bug 4563486

Change-Id: I9292ea6d52e135cdabcfe68091d4d24d15524c97
Signed-off-by: Tom Taylor <tomtaylor@google.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5996cd3d64fcb93c437874848705297783ee2eab 09-Aug-2011 Tom Taylor <tomtaylor@google.com> "Message details" dialog shouldn't have OK button

The new UI convention is to dismiss via a tap outside (or BACK.)
Bug 5137196

Change-Id: I7ca40201039928a74be5eda88d68a765ca88e4c0
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b500b0c4e563954bf2f8b61841041628be5784ed 05-Aug-2011 Tom Taylor <tomtaylor@google.com> Don't discard new conversations

If the recipients editor is open, don't discard the message and close
ComposeMessageActivity. Bug 5127453

Change-Id: I05193739a7d34b9a145560c0e599fc2c2f85c572
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f5ee09517257bdf130b88d3ae14cf322bf96cd9d 04-Aug-2011 Tom Taylor <tomtaylor@google.com> Fix java.lang.IndexOutOfBoundsException

Don't try to dial when there isn't a recipient. This is a very
unusual case found by the monkey. The code that puts up the menu
checks for recipients, but by the time the monkey hits the menu,
the recipients list is empty. Bug 2556294

Change-Id: I78d4a0e92902bbcf41941cb6b537d49ff48a5109
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c06913a292eba0dc9c17ca312f837f009b8e46f5 03-Aug-2011 Tom Taylor <tomtaylor@google.com> Blank messaging thread is displayed after locking/unlocking the screen

The conversation was getting wiped out because the message count
in the conv was 0. Bug 5088276

Change-Id: Id1af5e862eb7679bfc0328134d61c1949fe08f3c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f1dad79a1bd939e06bae97e9d6ef83a1b1369529 27-Jul-2011 Tom Taylor <tomtaylor@google.com> CMA menu reorganization and simplification

Bug 5054233

Change-Id: I08b9f08e804cb95018e113d74558d032aee7a557
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5681f6193a7368a39ec1b9a617357a02a242e02c 26-Jul-2011 Tom Taylor <tomtaylor@google.com> Name and phone number should be on separate lines in the action bar

Bug 5052457

Change-Id: I0da473006b3f2d57d54450cfbfc268b25e3859a2
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c64cdf971fcc804d0d486f9e41a778ce1c9ac96c 20-Jul-2011 Tom Taylor <tomtaylor@google.com> Need to tap twice on send button to send an edited draft message

Use a TextView instead of an EditText item. Bug 4983449

Change-Id: Ib812f01e59e6240fa83025a2fa7fa4f75e4a7da4
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3fb271abe0c478d0ea8432830589774182079c86 30-Jun-2011 Tom Taylor <tomtaylor@google.com> New UI look for Messaging

Changes include left and right avatars for sender/recipient in
message items, an icon (instead of text) for the send button.

Change-Id: I4a112ee656a38476a5238d680b59bf6c52dfa2ca
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b8f05c322ed3253eee1d47d36ab56783562e418c 24-Jun-2011 Tom Taylor <tomtaylor@google.com> Dismiss notifications for same thread

If you're in ComposeMessageActivity and you receive a message for that
conversation, selecting the notification wouldn't appear to do anything and the
notification remained. Now when the notification is selected, we
mark any new messages for that thread as seen and dismiss the notification.
Bug 3321269

Change-Id: I6ae83b652ff0a9b11ed866fa927e080b600fbe24
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
85d5c5d852355248b98c43305bd950b432754755 03-Jun-2011 Ben Dodson <bjdodson@google.com> am 4f28ef33: am 59249b63: am 1149674a: Improved support for rfc 5724

* commit '4f28ef33ca021f8560b50e90427e0c3b67a05c9a':
Improved support for rfc 5724
4f28ef33ca021f8560b50e90427e0c3b67a05c9a 29-May-2011 Ben Dodson <bjdodson@google.com> am 59249b63: am 1149674a: Improved support for rfc 5724

* commit '59249b634c93d275af78b4b9a3546a08ef872117':
Improved support for rfc 5724
7a0d891850d3a57c6358f1a2c8798f4f84a47e7c 27-May-2011 Tom Taylor <tomtaylor@google.com> Fix NPE

When the CamcorderProfile returns null, the max video size is now zero.
Bug 4501609

Change-Id: I3a8d06bb6af76a7ee27dab52d08af4f7b6f3f661
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
59249b634c93d275af78b4b9a3546a08ef872117 24-May-2011 Ben Dodson <bjdodson@google.com> am 1149674a: Improved support for rfc 5724

* commit '1149674a2a3c13c7b3b41e5057880e011a45b4b4':
Improved support for rfc 5724
1149674a2a3c13c7b3b41e5057880e011a45b4b4 19-May-2011 Ben Dodson <bjdodson@google.com> Improved support for rfc 5724

Change-Id: I0b8a07de4af64173ef431ade3bf2dca6c4fb9ba6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
7020f6b8fa387935ac2580c636360c2bbc39bffc 16-May-2011 Tom Taylor <tomtaylor@google.com> UI tweaks to match latest spec

Change-Id: I056215ec9d9ce0e1ab21d1cba81408647660ed1a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b51ea8318ca2e4019b666d938e3e7efdf6e643b3 13-May-2011 Tom Taylor <tomtaylor@google.com> Multi-select conversation delete

Change-Id: I78748c9881733caea18239e4bd807e7a0c2ae4bf
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
05924c096264840a88518c7d55ec0ace6b528a58 11-May-2011 Tom Taylor <tomtaylor@google.com> Add "Add attachment" to CMA's action bar

Make text of attachment panes visible.

Change-Id: I3f9ec45cfaaf4069da90a43768d75146274f036a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e11f7ebf8ec01d7af063781d5bf9ab9ff92f8b7e 11-Apr-2011 Soojung Shin <sj46.shin@samsung.com> am 0b3d94dd: am 99ffe3fc: am 5751c241: Allow the SMS message length to be set via mms_config.xml

* commit '0b3d94dd0347414f65416c692046ef643c227c0e':
Allow the SMS message length to be set via mms_config.xml
0b3d94dd0347414f65416c692046ef643c227c0e 11-Apr-2011 Soojung Shin <sj46.shin@samsung.com> am 99ffe3fc: am 5751c241: Allow the SMS message length to be set via mms_config.xml

* commit '99ffe3fc4f486c3249376f943cc2dd3d3fb6873e':
Allow the SMS message length to be set via mms_config.xml
150c4179995cc0a75f934ef194372f9295957ca2 08-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These havent been working since before 1.0.

Change-Id: I7b60931012a68116b516acc8af8a7a8fdeab97c3
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
99ffe3fc4f486c3249376f943cc2dd3d3fb6873e 04-Apr-2011 Soojung Shin <sj46.shin@samsung.com> am 5751c241: Allow the SMS message length to be set via mms_config.xml

* commit '5751c241c4a9cb19668788e2ae83ca6e8287375c':
Allow the SMS message length to be set via mms_config.xml
5751c241c4a9cb19668788e2ae83ca6e8287375c 31-Mar-2011 Soojung Shin <sj46.shin@samsung.com> Allow the SMS message length to be set via mms_config.xml

Change-Id: I8941fcc9f352805635c638aa2e2bae513b71db8f
Signed-off-by: Soojung Shin <sj46.shin@samsung.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1d145e32fc5502037a0f9fe000b4127f62fc0f92 29-Mar-2011 Soojung Shin <sj46.shin@samsung.com> am 8d173b4c: am c8859ed1: Keep MMS mode with >160 characters after removing attachment

* commit '8d173b4cbca1bbdf571034ad6585f07bc973dcd7':
Keep MMS mode with >160 characters after removing attachment
8d173b4cbca1bbdf571034ad6585f07bc973dcd7 25-Mar-2011 Soojung Shin <sj46.shin@samsung.com> am c8859ed1: Keep MMS mode with >160 characters after removing attachment

* commit 'c8859ed1e7b47996762dcb34f160521f276dccdf':
Keep MMS mode with >160 characters after removing attachment
c8859ed1e7b47996762dcb34f160521f276dccdf 24-Mar-2011 Soojung Shin <sj46.shin@samsung.com> Keep MMS mode with >160 characters after removing attachment

1. Compose SMS with <=160 characters.
2. Add an attachment.
3. Add some characters to make >160.
4. Remove the attachment.

Result:
Message mode is switched to SMS.

Expected result:
Message mode should not be switched.

Change-Id: Ie71a74bdb6037b6fefe2166c1ea2972d8fc67c1c
Signed-off-by: Soojung Shin <sj46.shin@samsung.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a47eb9f7bfec0a4a07b80c6123abed80d74e12ab 18-Mar-2011 Soojung Shin <sj46.shin@samsung.com> am 2c4537cb: am 9aed641d: Allow choice between multi-part SMS and MMS

* commit '2c4537cbed9aa5069e86d456aabdc1030a62d0d3':
Allow choice between multi-part SMS and MMS
2c4537cbed9aa5069e86d456aabdc1030a62d0d3 18-Mar-2011 Soojung Shin <sj46.shin@samsung.com> am 9aed641d: Allow choice between multi-part SMS and MMS

* commit '9aed641d68fafdec88f83d9c4f949ca9ab6fdb0e':
Allow choice between multi-part SMS and MMS
9aed641d68fafdec88f83d9c4f949ca9ab6fdb0e 16-Mar-2011 Soojung Shin <sj46.shin@samsung.com> Allow choice between multi-part SMS and MMS

- Messages with over 160 characters can be sent via MMS or
multi-part SMS.

- Deal with slide durations that the MMSC does not
support.

Change-Id: I35ad6d2e7ca23edfb49b6790f8f57053bf1c5bca
Signed-off-by: Soojung Shin <sj46.shin@samsung.com>
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b225917835e281b1da093ac3b40bcda8328b8949 26-Jan-2011 Tom Taylor <tomtaylor@google.com> am 5cc636e7: am b8d46228: Fix crash in WorkingMessage.saveAsMms

* commit '5cc636e7ea43a3a9c764ba73d60697dc66838597':
Fix crash in WorkingMessage.saveAsMms
5cc636e7ea43a3a9c764ba73d60697dc66838597 25-Jan-2011 Tom Taylor <tomtaylor@google.com> am b8d46228: Fix crash in WorkingMessage.saveAsMms

* commit 'b8d4622886695d60f30dbbbd7146321e2da0cb31':
Fix crash in WorkingMessage.saveAsMms
b8d4622886695d60f30dbbbd7146321e2da0cb31 25-Jan-2011 Tom Taylor <tomtaylor@google.com> Fix crash in WorkingMessage.saveAsMms

A set of steps will correctly cause the working message to get marked
as discarded. However, when restarting, the discarded working message
was not replaced with a good working message. Bug 1866477

Change-Id: I4b42402e3d539df2792b20fa5c3a2f4567085f08
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
72ab3ecfa3556866ee51b822f8ce5b1f2f117545 05-Jan-2011 Tom Taylor <tomtaylor@google.com> Merge changes from gingerbread

Manually merge some of the gingerbread changes that didn't get auto-merged
back into master.

Change-Id: Ibfea8d1317f16717e5cb3f2ea1ec6c16a9ab9b83
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
63e1e43eba8a1c47bf6895055046bc126e70c38b 05-Jan-2011 Wei Huang <weih@google.com> am 048de832: am 94263ffe: bug #3057952: remove and turn off verbose logging done for this bug.

* commit '048de8327650c65e9e0df591f13a9d4870528fd8':
bug #3057952: remove and turn off verbose logging done for this bug.
048de8327650c65e9e0df591f13a9d4870528fd8 05-Jan-2011 Wei Huang <weih@google.com> am 94263ffe: bug #3057952: remove and turn off verbose logging done for this bug.

* commit '94263ffe93fedcbd2ce3a8fffe44e36a3b0acebd':
bug #3057952: remove and turn off verbose logging done for this bug.
94263ffe93fedcbd2ce3a8fffe44e36a3b0acebd 05-Jan-2011 Wei Huang <weih@google.com> bug #3057952: remove and turn off verbose logging done for this bug.

Change-Id: I85c14abfccb35d3d4f9c80cba14642f5cb2fb1fc
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
907335c0dc5b187de4b1123be4c5150e7582b1e5 04-Jan-2011 Tom Taylor <tomtaylor@google.com> am 2fa88786: am d2ff1f81: Notification goes to conv list

* commit '2fa88786d3b0ddf0c2af1b4f8664800060880833':
Notification goes to conv list
2fa88786d3b0ddf0c2af1b4f8664800060880833 04-Jan-2011 Tom Taylor <tomtaylor@google.com> am d2ff1f81: Notification goes to conv list

* commit 'd2ff1f81a3f68f99a8d62fc61256e6bc94ae45a7':
Notification goes to conv list
d2ff1f81a3f68f99a8d62fc61256e6bc94ae45a7 04-Jan-2011 Tom Taylor <tomtaylor@google.com> Notification goes to conv list

Selecting sms notification often goes to conversation list instead
of the individual conversation. Bug 3322081

Change-Id: I67382208daea657b46593d82b23c6d2461414331
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9337760339d7d3a1cace8a2acfc2df7e50219a89 03-Jan-2011 Wei Huang <weih@google.com> Merge commit 'f9466d4b' into manualmerge

Conflicts:
src/com/android/mms/data/WorkingMessage.java
src/com/android/mms/ui/ComposeMessageActivity.java

Change-Id: If66a2c8d1573c09fc47b94c56915c916720a607c
f9466d4b6ab819f0a501598365ae2189efed0b60 03-Jan-2011 Wei Huang <weih@google.com> am 858d59e9: bug #3057952: add bunch more debugging info to catch this bug.

* commit '858d59e9f4b0839ee014e52e0744ea910d9830ff':
bug #3057952: add bunch more debugging info to catch this bug.
858d59e9f4b0839ee014e52e0744ea910d9830ff 03-Jan-2011 Wei Huang <weih@google.com> bug #3057952: add bunch more debugging info to catch this bug.

Change-Id: I3ea9bd19adcf177697536cc56ab079957f863463
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e91fc33da1df4a8e8600988ba4b577595d14890e 19-Oct-2010 Tom Taylor <tomtaylor@google.com> am 4d72768e: Prepare for turning off extensive logging

Merge commit '4d72768e5f149a6bcd40604d1e2741795cc86ebf' into gingerbread-plus-aosp

* commit '4d72768e5f149a6bcd40604d1e2741795cc86ebf':
Prepare for turning off extensive logging
4d72768e5f149a6bcd40604d1e2741795cc86ebf 18-Oct-2010 Tom Taylor <tomtaylor@google.com> Prepare for turning off extensive logging

Bug 3062274

Change-Id: I02dbc06b6502d8f50ba7bb2dca367623364adc40
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
745eb44f8c34ec1c25867dd6af896f403589ac52 14-Oct-2010 Wink Saville <wink@google.com> Resolve merge conflicts for merge of f9037fd0 to master.

Change-Id: Ic28da12e1729d311a67fc7971951cfd9a9a6e8d7
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/ui/ComposeMessageActivity.java
e236714b6858b0df19ba285243399f7da1fa2655 11-Oct-2010 Channagoud Kadabi <ckadabi@codeaurora.org> am a068c7df: am 78d66fda: Apps/MMS: Fix memory leak due to excessive Jni global references

Merge commit 'a068c7dfe0491b6e6476d6ae9694598ce261c706'

* commit 'a068c7dfe0491b6e6476d6ae9694598ce261c706':
Apps/MMS: Fix memory leak due to excessive Jni global references
61f7564d146f338dbcc05340a6800446f892b121 11-Oct-2010 Tom Taylor <tomtaylor@google.com> am 68b0fa23: am 5408cfe5: Merge "Call dialog.dismiss()" into gingerbread

Merge commit '68b0fa23f7ecd5e4d8775d8cb2d5e7bb9bba17cf'

* commit '68b0fa23f7ecd5e4d8775d8cb2d5e7bb9bba17cf':
Call dialog.dismiss()
a068c7dfe0491b6e6476d6ae9694598ce261c706 10-Oct-2010 Channagoud Kadabi <ckadabi@codeaurora.org> am 78d66fda: Apps/MMS: Fix memory leak due to excessive Jni global references

Merge commit '78d66fda7935a5af739d76eccee667d63e260137' into gingerbread-plus-aosp

* commit '78d66fda7935a5af739d76eccee667d63e260137':
Apps/MMS: Fix memory leak due to excessive Jni global references
c4a34a0ccd414e2bba937e8abd105a0383afff35 09-Oct-2010 Tom Taylor <tomtaylor@google.com> Call dialog.dismiss()

In many of the click handlers, we neglected to dismiss the dialog.
Bug 3072307

Change-Id: Ie461492394c9f29ce2a7bb6e7f00a93068ea2bf8
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b6e4518a7b3740e48fd03f3803cc8696f15bbcc7 05-Oct-2010 Tom Taylor <tomtaylor@google.com> Add debugging code

Add a number of tests to try and track down the situation that causes
a message to be sent to the wrong recipient. Bug 3057952

Change-Id: I2da3e91dcb039e87c3222e48026b859d1644793e
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
78d66fda7935a5af739d76eccee667d63e260137 29-Sep-2010 Channagoud Kadabi <ckadabi@codeaurora.org> Apps/MMS: Fix memory leak due to excessive Jni global references

When the ComposeMessageActivity is destroyed, the cursor for
RecipientsAdapter is not getting closed. This leads to increase in
number of Jni references each time the ComposeMessageActivity is
opened. Thus closing the cursor for RecipientsAdapter accordingly
to avoid cursor leaks.

Change-Id: I98f33e9681ceca7fb5485e277fe3c6a529163c28
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
61bb6e23aeeea4ccad1c772b61bc50b740da5635 11-Sep-2010 Tom Taylor <tomtaylor@google.com> am 7f2c0cbd: am 1e59e424: Thread call start

Merge commit '7f2c0cbda8fbe92fc26ca7069a20728ecf24a4ef'

* commit '7f2c0cbda8fbe92fc26ca7069a20728ecf24a4ef':
Thread call start
1e59e424b57c0b63125415c720a7e815f2802caa 10-Sep-2010 Tom Taylor <tomtaylor@google.com> Thread call start

A thread was calling run() instead of start(). Add names to the
threads in this file. Gingerbread bug 2991885.

Change-Id: I20f144b53c96227f977340d4a69bc68311403ed5
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2b7da074e10ceb0e04cc205efe721092781f2712 24-Jun-2010 Tom Taylor <tomtaylor@google.com> Fix mismash message

DO NOT MERGE
A particular set of repo steps involving creating a draft, then deleting
the draft and then receiving a new message can lead to a situation where
a new incoming message gets the old thread id of the discarded
draft. The compose activity can end up displaying the recipients of the
old message with the contents of the new message. Recognize this dangerous
situation and bail out to the ConversationList where the user can
enter the compose activity in a clean manner.
Bug 2793874

Change-Id: I04727de3908e3c50d4687cb6e2a9cc6589daed9c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
10bfaebfa14563131d16296016c7333931c768e7 24-Jun-2010 Tom Taylor <tomtaylor@google.com> am 3efee808: am 9c4ff11d: Fix mismash message

Merge commit '3efee8088bc65ff5e926b333498ae93820682c15'

* commit '3efee8088bc65ff5e926b333498ae93820682c15':
Fix mismash message
9c4ff11dd546f48b68216d931b3bf7c1176657c4 24-Jun-2010 Tom Taylor <tomtaylor@google.com> Fix mismash message

A particular set of repo steps involving creating a draft, then deleting
the draft and then receiving a new message can lead to a situation where
a new incoming message gets the old thread id of the discarded
draft. The compose activity can end up displaying the recipients of the
old message with the contents of the new message. Recognize this dangerous
situation and bail out to the ConversationList where the user can
enter the compose activity in a clean manner.
Bug 2793874

Change-Id: I795ed6e1d95d9c1a2d1093a2491ca8c449ff2609
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
fcee445de78ac2ddb9aafdff0a5967afca1e5d93 19-Jun-2010 Wei Huang <weih@google.com> am 3ed67ccc: am 0d4f90a1: am 7bb3d8cf: bug #2780967: fix SMS sending message to the wrong person.

Merge commit '3ed67cccdb386075cf3e07569c45ee49d4691174'

* commit '3ed67cccdb386075cf3e07569c45ee49d4691174':
bug #2780967: fix SMS sending message to the wrong person.
7bb3d8cf74ec1e4ae18cb814c17e12a00816f105 19-Jun-2010 Wei Huang <weih@google.com> bug #2780967: fix SMS sending message to the wrong person.

- there is an edge case where an old draft message (but w/ only recipient entered, no draft message) would confuse Compose activity to think it's the same
thread_id as a new message (coming into onNewIntent() from status notification). In that case, we don't re-initialize mConversation, which retained the old draft recipient

When the user sends a new message in that state, the message would be addressed to the old draft recipient instead of what's appearing in the UI.

Change-Id: Ic78c4343dc1d9a1639f586dcc8ac861adf73f44f
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b45f4f5d4a97f9adb4d9562026caf8b2cbfd7309 19-May-2010 Wei Huang <weih@google.com> am 8f84adfa: am d669a2b2: bug #2694518: remove Google Voice private API in MMS app per discussion with team.
d669a2b2fcde0f588944af6caaca814a1bd4e92d 18-May-2010 Wei Huang <weih@google.com> bug #2694518: remove Google Voice private API in MMS app per discussion with team.

- we decided that we cannot have Google specific code in a platform application like MMS. Will revisit this feature in Gingerbread.

Change-Id: I5cf030a759be54ab32032a95141472a4fd89b5da
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
15057746d75afb5fec583f30064b382c18403608 21-Apr-2010 Tom Taylor <tomtaylor@google.com> Specify sound recording limit

When recording a sound for a MMS attachment, specify a limit so the
user can't record a message that would exceed the MMS max size.
Bug 1339600

Change-Id: Idb882aaf379fed45170eb24e14d779bbd42c76c6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f3306bb129f1caade42dac3ad771c372ed5cddfd 15-Apr-2010 Tom Taylor <tomtaylor@google.com> Fix hidden selection

When a users uses the trackpad to scroll around ComposeMessageActivity,
the selection would disappear when it would select a scrollview containing
the hidden attachment editor. Keep the visibility of the wrapping
scrollview in sync with the attachment editor. Bug 2595843

Change-Id: I5baf83814546ea705b0658acf44cd717c09e7670
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a4dac6047229de8344a6a3ec2fc00e6c158e9318 13-Apr-2010 Tom Taylor <tomtaylor@google.com> Check for valid cursor

We already do a similar check in a similar situation building a
context menu. Need to do the same check here.

Change-Id: Ie7d0abbfb7443d9c8dd637fee3cf576168120183
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a6dd14dc0963aa8f30e625aa88e925e3fa0744f0 25-Jan-2010 Bai Tao <michaelbai@google.com> Provides a way to let user select the recipients from a list of phone numbers.
a. Add a buttion beside to recipients box.
b. The multiple phones picker which is implemented in Contacts is launched when user touch the button. The existent recpients are selected by default.
c. The user's selection will be populated to recipient's box when being back from multiple phones picker.

Also fix the related issue that the draft message is left once the recipient is changed.

Change-Id: I036b65dd1a651aae2fbb2e58a4b2b9e126ca4e74
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
09a75ac1d3710e60dbe78ead3dee6863ffb380ca 08-Apr-2010 Wei Huang <weih@google.com> bug #2438230: more logging for Conversation and Recipient cache.

- add more logging to try to catch the mismatching contact/thread bug.
- add selective checking to make sure thread id and recipients are not compromised.

Change-Id: I038dca4f7b32bf822ef68e344c7a6eaf8990e328
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c146e65d921676f7d7ca19a56b6b0ae9406a002b 01-Apr-2010 Mark Wagner <mxw@google.com> fix race condition unregistering receivers

bug 2553387

Change-Id: I43b37c0104bfbe22be81d1f938c4ff66240557bc
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
459ad1ea05610f7c071f65da6842e00e21bd5eaf 01-Apr-2010 Mark Wagner <mxw@google.com> regex fixes: need to quote the string

bug 2553520

Change-Id: I1b3daac42dc60b4cb74ede658ae6ec7f9d0c0ff9
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4011f521ee944725d09106d96968b104c0c0eaac 01-Apr-2010 James Dong <jdong@google.com> Mms update due to CamcorderProfile.java public API refresh
Dependency: https://android-git.corp.google.com/g/#change,47310

bug - 2553862

Change-Id: I65abbc0b62139efe5f50f74d2bf3a5894136146b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9c21cccdc5737c0d54fe9220959964b0a9bdaa9d 25-Mar-2010 Tom Taylor <tomtaylor@google.com> Fix multi-share

When sharing multiple images and/or videos from the gallery, the type
passed in is */*. The code needs to recognize that type. Bug 2542419.

Change-Id: I9bf087c117f2ddaf908b4bc670072c7e8520f463
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a2023c74813d4bee578462d4d4470f657d3e07de 23-Mar-2010 Tom Taylor <tomtaylor@google.com> Alert on non-UI thread

Now that we're doing more stuff off of the UI thread, catch a case
where we were trying to put up an error dialog while attaching a video.
The function is called from many places. Make sure the guts of the
function that show a toast or dialog run on the UI thread. Bug 2530897

Change-Id: I8671f43b29ccfd44f48b9f224188fa9ac6648370
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cb595f45ed21caac7f686d6088b7adef123ea4a4 22-Mar-2010 Tom Taylor <tomtaylor@google.com> Unregister broadcast receivers

ComposeMessageActivity needs to unregister the receivers setup by
WorkingMessage when onStop is called. Bug 2534223.

Change-Id: I44114098bf747cda3f18a81d0fe8d329dc57db80
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1998176d6069aa9c3e3f2f16e66f12073554ec66 22-Mar-2010 Tom Taylor <tomtaylor@google.com> Fix a null ref

Bug 2533718.

Change-Id: Ie830d856909fc427ba90892f73f39ade90029afd
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
60d7fa5f74463f22fe9a4cd81c0b2fcc95be7c09 19-Mar-2010 Tom Taylor <tomtaylor@google.com> Update after adding contact

After adding a contact, force the conversation to reload the associated
contacts. Bug 2524437.

Change-Id: I6c65bfe4f04c53f17a52ee62c678e97ade2aea80
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
32fc80c3da56787085648b83940f897df56b83c4 18-Mar-2010 Tom Taylor <tomtaylor@google.com> Don't edit the wrong item

If a new message arrives or the underlying DB changes at the same
moment the user taps the error icon to edit and resend a message,
the editor can come up showing the wrong message. When the DB
gets updated, MessageListAdapter.notifyDataSetChanged() clears the
mMessageItemCache. At the same time, editing a message with an
error calls mMessageListItemhandler.handleMessage, which calls getMessageItem
which would try and get the messageItem out of the cache. Since the
cache is empty, it would then create a new messageItem out of whatever
the cursor was pointing to! With this change, the code in this path
will not create that bogus item and will silently do nothing. This
same function is called from the menu code and I argue the menu code
shouldn't be creating items either, but I didn't make that change in
this CL. Bug 2372633

Change-Id: I009a4b561e5d7a81cb45724fdf3041e9e413e09a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
12d7e85291b0bd5772e70176e208fce82fd39b8a 12-Mar-2010 Tom Taylor <tomtaylor@google.com> Fix cursor out of range

There's a scenario where long-pressing on a message while a
message receipt comes in causes a cursor change. By the time the
onMenuItemClick handler gets called, the cursor is invalid.
Code would test for a valid cursor, but unfortunately, earlier
code would try and read values from that cursor. With this fix,
we test for a valid cursor before doing any operations. Bug 2511080.

Change-Id: Ib689ba9cf58ca7dc552c2c258b8043c4be59c0c6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
511d10f9bfb1aee1150bf2127ae03d7275706cc6 09-Mar-2010 Tom Taylor <tomtaylor@google.com> Fix an odd startup bug

Bug 2490108 describes a situation where starting a new messaging
conversation from Contacts brings up the compose message activity in a
state where the recipients editor is not editable, even though it's a
new conversation. The bug also describes the normal case where the editor
does come up editable. The difference is that one goes through onCreate
and the other through onNewIntent. We need to clear a flag that says
whether a message has been sent or not so the recipient editor will be
displayed properly in onQueryComplete.

Change-Id: Idaacea20c277dc39e9d258fd73354c915119c2ed
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
c7b4497d1129fbfc1a69ee3c5a30e28153afd3e8 08-Mar-2010 Tom Taylor <tomtaylor@google.com> Fix empty draft

When an attachment is added, the working message is bumped up to a
temporary Mms state. Once the attachment is added, the various
flags in working message will be updated and that temporary state
removed. However, if the user backs out of adding an attachment,
the working message will be left in the fake Mms state and on
exit, will cause an empty draft to be saved. Now we clear that
fake Mms state when we return from adding a draft, successful or not.
Bug 2493456.

Change-Id: I596efbee0bcd54c30b1de4f4aedf1b9c6919f947
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
436042159134e8ecbc57097340a5bd81f2912574 27-Feb-2010 Tom Taylor <tomtaylor@google.com> Avoid unnecessary DB updates

Making database updates at the same time we're trying to read the list of
messages in a conversation causes any further queries to block until the updates
are complete. This results in taking a long time to display a new
message when the user selects the sms notification. With this change,
we block marking a thread as "read" until we've completed the query for
a conversation's list of messages. Also, every delete causes several
DB updates inside the provider. We can avoid one of these deletes that causes
so many updates if the thread has no drafts. Now responding to a new message
notification only results in two updates (one to the sms table and one to the
pdu table) and that happens after the messages are loaded.
Bug 2467382.

Change-Id: I2a78023e3ba7dee72c110d2023f4c79b1b816565
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5873d00f37e4a07fad9dd94647fb73ed37f01ae5 26-Feb-2010 James Dong <jdong@google.com> Don't use system property to get the recording duration for MMS application.
Switch to use CamcorderProfile.java class to get the same info.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1c447686aedf9daf036f5ae7d04de14f0cb2f497 23-Feb-2010 Tom Taylor <tomtaylor@google.com> Fix draft corner case

When the message being edited is the only message in the conversation, the delete
message gets deleted before being edited. The trigger "delete_obsolete_threads_pdu"
sees that a thread contains no messages and silently deletes the thread.
Meanwhile, the mConversation object still holds onto the old thread_id.
The code now notices that situation and clears out the thread_id.
Later on, when Conversation.ensureThreadId() is called, we'll
create a new thread if necessary. Bug 2166889

Change-Id: Id5d4b810dbef87f67e8aa9084faf4b7bd8557972
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
34cba2ee7ea396870297dc7fe4a78a7a5357c859 16-Feb-2010 Tom Taylor <tomtaylor@google.com> Fix single picture attachment

Broke it in the last checkin.

Change-Id: I10208dd3fe97c8f2b52d02116abc21bfbbb8df24
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f6f761abb71455f79c8cadda94aa15fc15bb6d39 16-Feb-2010 Tom Taylor <tomtaylor@google.com> Load multi-attachments on background thread

Bug 2420889

Change-Id: Ie2922f9c91f1bc33898aab397bfa97c03c26c4c8
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
755cec68c6feddf6c2d2112ba8d580f96fc3e520 12-Feb-2010 Tom Taylor <tomtaylor@google.com> Fix subject on MMS-redit

When an MMS fails to send and the user re-edits the message,
the subject did not get restored nor was the subject editor
made visible. Bug 2436188.

Change-Id: Ib35681bb924342cb6ca7b910b623be1e7340d798
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
0af188b645e0fa69f5f5b8bff14b11c117535d8c 11-Feb-2010 Tom Taylor <tomtaylor@google.com> Don't show activity chooser

When navigating within the messaging app, go directly to the various
activities without the activity chooser popping up. Bug 2436863.

Change-Id: I1567efbc139ca6bbda529917e01284af4c311d0a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ebea1f24c246b8fa972ab9cbe52e6f506c5fc825 11-Feb-2010 Tom Taylor <tomtaylor@google.com> Don't refer to sdcard directly

Use constants from Environment.

Change-Id: Ifcb995c8d03f20aa3dd19da261be84c27afe5ce6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
540d263efa2830c154fc32bbad2a7e703cf5747d 10-Feb-2010 Tom Taylor <tomtaylor@google.com> Unlimited SMS message length

Remove the code that auto-converts a long SMS message into a
MMS message. We now allow a user to send unlimited length SMS
messages that get turned into multi-part SMS's. Add a UI test
for this feature. Bug 2216705

Change-Id: I0408e195dd98e2322e1d43360c49cfadb2c97939
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
0d4645de339b4681d18198ba7451e7b8807116f9 08-Feb-2010 Tom Taylor <tomtaylor@google.com> Handle multi-image resize out-of-memory

In some cases when attaching many photos to a slideshow,
the system will run out of memory trying to resize a photo
to a smaller size. Handle that case, cancel the send, and
mark the message with an error so they can edit it and resend it.
Fixes bug 2420008.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
07d483e5da80176484bff536d118cc061f28e586 09-Feb-2010 Tom Taylor <tomtaylor@google.com> Fix a cursor leak

Fix a cursor leak in the recycler. Add a test for sending large
numbers of sms/mms messages. Add another stress test for the recycler.

Change-Id: I8792e15d421ae32a78ca59fb4b73d354f2060819
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
07cd34eef6ff14e823a3cedfadadeb1c6e535812 26-Jan-2010 Tom Taylor <tomtaylor@google.com> Fix a crasher

Actually, it's our own crasher because we were throwing an exception
in an unusual circumstance. Before we hide the recipients editor,
remove the text changed listener.
Fixes bug 2396299.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b89a6e906aee77fb2c575a166e1fb6b521327276 21-Jan-2010 Christopher Van Der Westhuizen <cvanderw@google.com> Change that addresses the "Send MMS" button clipping issue.

An issue exists in which the "Send MMS" button is shrinked and has its text clipped when the text editor is one line long. This CL addresses that issue (Bug 2381613).

This CL also addresses another issue seen where, after sending an MMS message, the send button retains the "Send MMS" text and does not appropriately revert back to simply saying "Send" (Bug 2385924).
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ea5e915b6104ff0e30c313bcb5a96f838997e57b 22-Jan-2010 Mark Wagner <mxw@google.com> Contact class cleanup

Register listeners on the class rather than on the individual contact.
This is easier to manage.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
249ae2eeecf2dd7fe15ef3e050cac57042c7468e 21-Jan-2010 Bai Tao <michaelbai@google.com> avoid sending the same message two times with enter key.

http://b/2285060
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
fe2332c7ae78ca4d4e1b4ea0f8a948536d16f3d8 21-Jan-2010 Bai Tao <michaelbai@google.com> Fix NEP when save attached of some specific MMS

http://b/2333442
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4cb031ac8f130f345cdfd482f8eb7bd38232c1cf 11-Jan-2010 Christopher Van Der Westhuizen <cvanderw@google.com> Updating Mms package to include a permanent, static text indicator when the message is a MMS message. This is done as per bug 2338536 and the mock up provided there.

Change-Id: Idccefa56700320af49b7639cd63a0f4ec2a6625c
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
69f9edb80d24a50a0f98d7fcaccdc3e19cc903be 15-Jan-2010 Tom Taylor <tomtaylor@google.com> Fix a null ref

Bug 2377136.

Change-Id: I42e9231b8a2d2be83a9decb220d2651ecd6350e6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f114492537753bc68640d4a0d403861387296bcb 04-Jan-2010 Mark Wagner <mxw@google.com> search work

see the comments in the provider cl for more details
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
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/ui/ComposeMessageActivity.java
e7dad81b361a2b7a4c3b5e0fd146b64ad6649039 10-Dec-2009 Tom Taylor <tomtaylor@google.com> am d5ab1597: Merge change I8966bbf5 into eclair-mr2

Merge commit 'd5ab1597311248c6144c8477e0350b5f89b05d26' into eclair-mr2-plus-aosp

* commit 'd5ab1597311248c6144c8477e0350b5f89b05d26':
Resize pictures at send time
10eed0e3020e3eb0612747fe39e0f6117222dd95 09-Dec-2009 Tom Taylor <tomtaylor@google.com> Resize pictures at send time

Before this change, picture attachments would get resized as they
were added to a message. This means the first picture could take up
to the whole message space, the second picture any remaining space, etc.
With this change, pictures aren't resized until after the user hits
send. The remaining space in a message is divided equally among all
the picture attachments and they're resized to fit within that space.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
914c6668a91caac7e5258df59cce2509bd1ed7d2 02-Dec-2009 Tom Taylor <tomtaylor@google.com> am f1ab045f: Fix auto-requery ANR\'s

Merge commit 'f1ab045ff991e1ec3e4161d213627b8629971c0e' into eclair-mr2-plus-aosp

* commit 'f1ab045ff991e1ec3e4161d213627b8629971c0e':
Fix auto-requery ANR's
f1ab045ff991e1ec3e4161d213627b8629971c0e 02-Dec-2009 Tom Taylor <tomtaylor@google.com> Fix auto-requery ANR's

There are a couple of bug reports of ANR's from CursorAdapter doing
a requery on the UI thread. There are two off-the-beaten-path places
where the CursorAdapter was getting set with auto-requery == true
by default. Also, the recipients editor adapter had requery == true.
With this change, there should be no auto-requerying in mms.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
66f5386e2256628e01fcaa24b2366f0be005c178 01-Dec-2009 Tom Taylor <tomtaylor@google.com> am e692b9dc: Don\'t load contacts on UI thread

Merge commit 'e692b9dcf5742e7a3ef3a7e64b44bb9d08f05b57' into eclair-mr2-plus-aosp

* commit 'e692b9dcf5742e7a3ef3a7e64b44bb9d08f05b57':
Don't load contacts on UI thread
e692b9dcf5742e7a3ef3a7e64b44bb9d08f05b57 01-Dec-2009 Tom Taylor <tomtaylor@google.com> Don't load contacts on UI thread

There's a route through a Conversation constructor that will
result in the conversation's contacts getting loaded on the
UI thread. Add an explicit "allowQuery" parameter to give callers
the ability to throttle this behavior. Fixes bug 2280762.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d6cdc3b0964414363f783d188cb12b5ceaa7bf69 20-Nov-2009 Tom Taylor <tomtaylor@google.com> am 36991889: resolved conflicts for merge of d2edbbb1 to eclair-mr2

Merge commit '36991889eac09f621b14ffd5a7a47317a35870a3' into eclair-mr2-plus-aosp

* commit '36991889eac09f621b14ffd5a7a47317a35870a3':
Fix two Messaging contact updating bugs
36991889eac09f621b14ffd5a7a47317a35870a3 20-Nov-2009 Tom Taylor <tomtaylor@google.com> resolved conflicts for merge of d2edbbb1 to eclair-mr2
d2edbbb15b418002e3c6542e092a8228ad39baaf 19-Nov-2009 Tom Taylor <tomtaylor@google.com> Fix two Messaging contact updating bugs

1) There's a situation where getting a contact could potentially
return a cached contact whose contents haven't been completely filled
in yet.
2) When a contact's info does change, update the messages in the thread
to reflect the current contact data.
Bug 2271800.

Change-Id: I48403c45c461b3c609400a3a5f55b99aaee01cbd
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
48e957dd030904805573f5ca1a408cd5c4ea37bb 18-Nov-2009 Tom Taylor <tomtaylor@google.com> am 3b7f32b2: am 715e32f9: Fix ANR from calling Contact.get()

Merge commit '3b7f32b230434a1dcadf38d581ecc75fb0ae05bf' into eclair-mr2-plus-aosp

* commit '3b7f32b230434a1dcadf38d581ecc75fb0ae05bf':
Fix ANR from calling Contact.get()
3b7f32b230434a1dcadf38d581ecc75fb0ae05bf 18-Nov-2009 Tom Taylor <tomtaylor@google.com> am 715e32f9: Fix ANR from calling Contact.get()

Merge commit '715e32f97bd9d8ce4b5ba650b97ba4b137150456' into eclair-mr2

* commit '715e32f97bd9d8ce4b5ba650b97ba4b137150456':
Fix ANR from calling Contact.get()
715e32f97bd9d8ce4b5ba650b97ba4b137150456 18-Nov-2009 Tom Taylor <tomtaylor@google.com> Fix ANR from calling Contact.get()

The Contact.get() API allows the caller to specify whether the operation
can block (looking up contact info in the DB) or not. There are about 10
places where various callers were passing "true" to canBlock, all coming
from the UI thread. We've previously fixed Contact.get() to always return
a Contact, with the number filled in, even if we don't have the contact
in the cache. With this change, never block the UI thread getting a contact.
The worst side-effect should be showing a number, instead of a name.
Fixes bug 2265631.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ec450c253e837eb98b31123e04616fdd047904f5 14-Nov-2009 Tom Taylor <tomtaylor@google.com> am 0b9a41e3: am e3cc2856: Fix null ref

Merge commit '0b9a41e3f65db1c51ff929e6fffb9c9ae3e9d34d' into eclair-mr2-plus-aosp

* commit '0b9a41e3f65db1c51ff929e6fffb9c9ae3e9d34d':
Fix null ref
0b9a41e3f65db1c51ff929e6fffb9c9ae3e9d34d 14-Nov-2009 Tom Taylor <tomtaylor@google.com> am e3cc2856: Fix null ref

Merge commit 'e3cc2856bde797af8b9c5e0d9e3b6bb49b1200e4' into eclair-mr2

* commit 'e3cc2856bde797af8b9c5e0d9e3b6bb49b1200e4':
Fix null ref
e3cc2856bde797af8b9c5e0d9e3b6bb49b1200e4 14-Nov-2009 Tom Taylor <tomtaylor@google.com> Fix null ref

Fixes bug 2261398.

Change-Id: Idb4db938e93b792248d49410b9474c71d5d4bb37
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8c8e093724540586cb093181c2557b7ec0b661a5 05-Nov-2009 Tom Taylor <tomtaylor@google.com> Don't show Converting to MMS

When we open a thread where the recipient is an
email address, don't automatically show the "Converting
to multimedia message" The user already saw that when
he/she added the email recipient. Bug 2235226.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
eaae85a611898cdb5e672eaf10a15e3e32a57754 12-Nov-2009 Tom Taylor <tomtaylor@google.com> am 3a0501f8: am e676b822: Fix a draft mix-up bug

Merge commit '3a0501f8e94fa124a0609fef327a7390af51d18f' into eclair-mr2-plus-aosp

* commit '3a0501f8e94fa124a0609fef327a7390af51d18f':
Fix a draft mix-up bug
3a0501f8e94fa124a0609fef327a7390af51d18f 12-Nov-2009 Tom Taylor <tomtaylor@google.com> am e676b822: Fix a draft mix-up bug

Merge commit 'e676b8223ffc6a77acd8b36125f200fa30424efe' into eclair-mr2

* commit 'e676b8223ffc6a77acd8b36125f200fa30424efe':
Fix a draft mix-up bug
e676b8223ffc6a77acd8b36125f200fa30424efe 11-Nov-2009 Tom Taylor <tomtaylor@google.com> Fix a draft mix-up bug

There's a particular situation that'll cause ComposeMessageActivity
to choose an existing draft even though the new intent is for a totally
different contact. Fixes bug 2254833.

Change-Id: I1065806c7535a48e1c27140c4c76ccf9b9959c03
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
eee906821617074ead8ff675bf5703a1c0bc766b 10-Nov-2009 Wei Huang <weih@google.com> am fd78cc14: am 49183c09: bug 2250049: need to allow email address when sending a SMS message.

Merge commit 'fd78cc14a7ab50f652f16a3adb0403a3f6185d51' into eclair-mr2-plus-aosp

* commit 'fd78cc14a7ab50f652f16a3adb0403a3f6185d51':
bug 2250049: need to allow email address when sending a SMS message.
fd78cc14a7ab50f652f16a3adb0403a3f6185d51 10-Nov-2009 Wei Huang <weih@google.com> am 49183c09: bug 2250049: need to allow email address when sending a SMS message.

Merge commit '49183c099b1ac79f3c2fe97368ed76caba4ca98e' into eclair-mr2

* commit '49183c099b1ac79f3c2fe97368ed76caba4ca98e':
bug 2250049: need to allow email address when sending a SMS message.
49183c099b1ac79f3c2fe97368ed76caba4ca98e 10-Nov-2009 Wei Huang <weih@google.com> bug 2250049: need to allow email address when sending a SMS message.

- my change Ia80a2736 added code to validate and scrub MMS address. However, as a side effect
it also disallowed email address for SMS messages. Fix that.

Change-Id: Iac3783e056c933531da73bd53eb8ea9d7c0eb154
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ccf56ee6079a2378031a964f6a8da655e1fde023 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
39ca71db85505dad745f31d620b790bbabeb784b 06-Nov-2009 Wei Huang <weih@google.com> am 78f81825: bug 2236527: need to scrub the phone number before sending a MMS message.

Merge commit '78f81825431c8c52cad57bc4a363747533a701ab' into eclair-mr2

* commit '78f81825431c8c52cad57bc4a363747533a701ab':
bug 2236527: need to scrub the phone number before sending a MMS message.
78f81825431c8c52cad57bc4a363747533a701ab 06-Nov-2009 Wei Huang <weih@google.com> bug 2236527: need to scrub the phone number before sending a MMS message.

- add MMS address validity checking and scrubbing. If the phone number used to send a MMS message
contains invalid characters (non digits and non-valid separators), we now warn the user when he tries
to send the message. The prior validity checking code only checks against GSM SMS address, so it
would miss all the invalid chars for MMS address.

- assuming the MMS address is ok but contains separators that are not valid MMS address chars (as
far as the network is concerned), we scrub the number when creating the SendReq data structure for
MMS message.

- flag a few places where things are still not correct, but too risky to fix for MR1.

Change-Id: Ia80a2736f955b94a8cac51ffeb06617a95580ab8
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
200d37d90dd7640aa909edca6a2b55961faa5824 05-Nov-2009 Tom Taylor <tomtaylor@google.com> Don't show Converting to MMS

When we open a thread where the recipient is an
email address, don't automatically show the "Converting
to multimedia message" The user already saw that when
he/she added the email recipient. Bug 2235226.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
81d933b4432b1c75f02a5bd276459ab3fbaee9c3 05-Nov-2009 Tom Taylor <tomtaylor@google.com> Wrong contact header

Previously fixed this, but if the underlying search in ContactHeaderWidget
fails or takes a long time, the contact header will still show the wrong
info. Force an invalidate after clearing the ContactHeaderWidget so it'll
redraw empty, rather than leave the previous contact information.
Bug 2233151.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
74c1da682b6b71030a5fb090d3e7f1404bcb13cc 05-Nov-2009 Wei Huang <weih@google.com> am 56e77a57: bug #2236535: when entering MMS compose screen via an address in an intent, replace the matching contact cache with the intent address.

Merge commit '56e77a576e452f26da6941f01746435fe4b3011b' into eclair-mr2

* commit '56e77a576e452f26da6941f01746435fe4b3011b':
bug #2236535: when entering MMS compose screen via an address in an intent, replace the matching contact cache with the intent address.
56e77a576e452f26da6941f01746435fe4b3011b 05-Nov-2009 Wei Huang <weih@google.com> bug #2236535: when entering MMS compose screen via an address in an intent, replace the matching contact cache with the intent address.

- this is basically another path in which we have the actual dest address (in the intent). When the compose screen finds the
matching cached contact, it should replace the contact's address with the specified address in the intent, in case the
cached contact has a bad address.

Change-Id: Id55500e212df5dcd47ff7a1858bc99d4b4656df1
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cab73c66f1b07a639cbb75b6510d425477cbcaec 05-Nov-2009 Tom Taylor <tomtaylor@google.com> resolved conflicts for merge of 25b939e5 to eclair-mr2
25b939e5a7ecb1e0879b684dc5bc55183cf468b4 04-Nov-2009 Wei Huang <weih@google.com> bug #2236535: use an initial bad address (from a merged contact) would lead to permanent failure for the messaging thread even after a good number is used.

- when the user selects/types a new number in the recipients editor, and we find a cached contact, set the contact's number to be the newly selected number. This will allow the user to correct the address, at least until the next time MMS rebuilds the contact cache with the bad number stored in the database. This will get us to par with the Cupcake behavior. Unfortunately, after MMS app is relaunched, the thread would use the bad initial adddress again (loaded from the 'canonical_address' table in the db). That's a much harder, riskier fix, so deferring to later.

Change-Id: If32958482b14848bd770cff50e4736457c47ac8a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ec317d32aec10389fa5832ae8a1164f0375efb2e 03-Nov-2009 Tom Taylor <tomtaylor@google.com> Fix "sent to self" bugs

The messaging app special cases the contact "Me". Bug 2205868 found two
cases that exposed bugs in handling messages sent to self.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d94aa5fd212ff690e0527e587a1aef8313fca064 30-Oct-2009 Tom Taylor <tomtaylor@google.com> Allow full-length video replacement

When replacing an attachment with a different attachment, take into
consideration the current size of the slide and subtract that out
of the max message length. Right now, we're only doing that for video
as it is currently the only attachment where we can specify the limit
in advance. The technology is now there, however, to do the same with
captured audio. Fixes bug 2227514.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8b5ea2314049354f289925d4d8c6f11d13626a34 27-Oct-2009 Mark Wagner <mxw@google.com> inline avatars for mms
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5467f0f860d4fb32ac4d0b230e9c21f236e46e9b 26-Oct-2009 Tom Taylor <tomtaylor@google.com> Update fasttrack info

In onStart, update the fasttrack info. The contact info associated with
the message's recipients might have changed while we were not running. This
can happen if the user updates/adds/deletes an avatar.
Fixed bug 2184815: Msg inbox not display picture id when picture add from
new msg contact.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6d5bc7dd4e7a0ce646f31120e2177388123f5cb3 24-Oct-2009 Tom Taylor <tomtaylor@google.com> am 435fda3f: Fix build

Merge commit '435fda3f21edab8cce8b6650d3a818164cf0b2a4' into eclair-mr2

* commit '435fda3f21edab8cce8b6650d3a818164cf0b2a4':
Fix build
435fda3f21edab8cce8b6650d3a818164cf0b2a4 23-Oct-2009 Tom Taylor <tomtaylor@google.com> Fix build

Change-Id: I02b4038eda480b4bf78574e736dbb7813b78e6a0
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
467e85e9e797ccee1115b14b366632ddd9c423c2 23-Oct-2009 Tom Taylor <tomtaylor@google.com> am 11c4b635: Clear contact header

Merge commit '11c4b6354125f2e297bbf7805ec84f15ebdf0243' into eclair-mr2

* commit '11c4b6354125f2e297bbf7805ec84f15ebdf0243':
Clear contact header
11c4b6354125f2e297bbf7805ec84f15ebdf0243 23-Oct-2009 Tom Taylor <tomtaylor@google.com> Clear contact header

When updating the contact header widget, clear any stale info first
so we don't end up associating the wrong picture with a different
contact.
Fixed BC-triaged bug 2173406.

Change-Id: Ic4cabf8b88e8b0922308adefaeea9dd9467f9afa
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ce028797bad547286b4ca6812d06489a83dd7201 22-Oct-2009 Tom Taylor <tomtaylor@google.com> am 16f98e62: Show "converting to mms" message

Merge commit '16f98e62c279550854e665e25c212ea0b04a6b6b' into eclair-mr2

* commit '16f98e62c279550854e665e25c212ea0b04a6b6b':
Show "converting to mms" message
16f98e62c279550854e665e25c212ea0b04a6b6b 21-Oct-2009 Tom Taylor <tomtaylor@google.com> Show "converting to mms" message

There's one path when we have to downscale an attached picture where
we weren't showing the "converting to mms" message.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f9ed50ad8005a797230392d79a2cafbf82d026be 15-Oct-2009 Tom Taylor <tomtaylor@google.com> Call, not dial

When the user selects the menu item to call a number, actually
call that number, rather than just bringing up the dialer with
the number preloaded.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
acf155c6db8a77212b6361e57b1c37e641bc6f04 13-Oct-2009 Tom Taylor <tomtaylor@google.com> Fix contact header updating

When a user added a recipient and tapped the message area to start
composing, the code would ask for the contact. Since we didn't have
the contact in the cache, we'd fire off an async request to load the
contact info. Meanwhile, ComposeMessageActivity would use the contact's
name, which in this case was just the number, to display in the contact
header widget. With this change, we register for changes on all the
contacts. If a contact changes, we rebuild the contact header widget.
Also removed obsolete presence code.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
205c80e8d026b35af86f1b4ab5584f5a0ea2e2f1 10-Oct-2009 Wei Huang <weih@google.com> am fc8b626d: bug 2170766: call ContactHeaderWidget.bindFromEmail() if the MMS from addr is an email addr.

Merge commit 'fc8b626d34a2cfdab29248f8f58c512b457ec0d3' into eclair-mr2

* commit 'fc8b626d34a2cfdab29248f8f58c512b457ec0d3':
bug 2170766: call ContactHeaderWidget.bindFromEmail() if the MMS from addr is an email addr.
fc8b626d34a2cfdab29248f8f58c512b457ec0d3 10-Oct-2009 Wei Huang <weih@google.com> bug 2170766: call ContactHeaderWidget.bindFromEmail() if the MMS from addr is an email addr.

Change-Id: Ie933ece6e0871145893c547f788c6454f9babd47
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
293e855e98b5ded9bfaa37168cc75d0cd5704fbd 06-Oct-2009 Tom Taylor <tomtaylor@google.com> am eb11b23b: Merge change Ie05aa504 into eclair

Merge commit 'eb11b23bddf54833a23e0891dfa01c33ef0ed62a' into eclair-mr2

* commit 'eb11b23bddf54833a23e0891dfa01c33ef0ed62a':
Launch a forward activity
75f79627e52ec0b4ed7ee319945bed9dc34f569f 06-Oct-2009 Tom Taylor <tomtaylor@google.com> Launch a forward activity

When a user forwards a message, create a new copy of the ComposeMessageActivity.
We do this by starting an aliased activity that doesn't have the singleTop
flag set. Fixed bug 2164612.

Change-Id: Ie05aa504c39df3e88eb4ecd7309d84b06e8d61be
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b00c701eba9dab6a751b10afe0f0821060514461 05-Oct-2009 Tom Taylor <tomtaylor@google.com> am da51c396: Don\'t automatically go back to ConversationList

Merge commit 'da51c396e2de55b4bb0cdd953987fed2ffb54a59' into eclair-mr2

* commit 'da51c396e2de55b4bb0cdd953987fed2ffb54a59':
Don't automatically go back to ConversationList
da51c396e2de55b4bb0cdd953987fed2ffb54a59 05-Oct-2009 Tom Taylor <tomtaylor@google.com> Don't automatically go back to ConversationList

When saving a draft, don't automatically launch the ConversationList. The auto-launch
behavior made backing out of Messaging a two-step operation when launched from another
app like the Browser.

Change-Id: Iffcbfb8c3af00c125562541c7292d12118434985
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
727c4572a5a5e0717cf0faa873a2dde8cb7ce2a4 05-Oct-2009 Wei Huang <weih@google.com> am 0aef1a19: bug 2161715: don\'t decode the large JPEG into Bitmap, which causes OOM. Instead read the JPEG data directly.

Merge commit '0aef1a199b5a702f4a0acbbd27c936115ed7ab64' into eclair-mr2

* commit '0aef1a199b5a702f4a0acbbd27c936115ed7ab64':
bug 2161715: don't decode the large JPEG into Bitmap, which causes OOM. Instead read the JPEG data directly.
1d95d8928940553e9e99f34ad075865b9b34781c 03-Oct-2009 Tom Taylor <tomtaylor@google.com> Respect Mms disabled

When Mms is disabled, don't let a long message trigger the logic that turns
a multi-segment Sms message into a single Mms message. In fact, when Mms
is disabled, physically disable the ability for the app to set any of the
Mms flags.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
0aef1a199b5a702f4a0acbbd27c936115ed7ab64 02-Oct-2009 Wei Huang <weih@google.com> bug 2161715: don't decode the large JPEG into Bitmap, which causes OOM. Instead read the JPEG data directly.

Change-Id: Iab6f27b00b4ae9dc0d2126dd369d8d04e27bcb67
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d9db0a031dc9116d13bf55c8476f8daa910a9804 30-Sep-2009 Wei Huang <weih@google.com> bug 2154878: don't show the recipients editor after the user sends a message.

Change-Id: I0254cb893fb37a37ceeade8faf9b4c7737fd3f8a
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
984577aa5f27608f2d251130ce373ca722d6ffe5 29-Sep-2009 Wei Huang <weih@google.com> bug 2152101: when displaying a new sms message from notifications, hide the old recipient editor if it was visible.

Change-Id: Id1d3e667f791ee7c11abf0dbdee0d252c8080ddb
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
a76f3c78dbebb56a8cce9c71f6ab5638f9c727c3 29-Sep-2009 Tom Taylor <tomtaylor@google.com> Don't change focus

When opening the keyboard, don't change the focus. The line I'm removing
must have been put in to solve some problem, but it causes other problems.
For instance, if you're editing a recipient in portrait using the soft-keyboard
and decide it'd be easier to use the hard keyboard, the focus will switch out
from under the user from the recipients editor to the message editor. With this
change, the focus will remain in the field the user was typing in.

Change-Id: I84e31b9685aae936579d1b728750ed5edc0c8c60
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
95e96df81536897f5856e9d33d5eccd54210d87a 28-Sep-2009 Tom Taylor <tomtaylor@google.com> Fix a monkey crasher

It looks like the monkey can squeeze in multiple clicks before the first
click is handled. Instead of creating and throwing away an attachment adapter,
create it once and use it from then on.

Change-Id: I4679f6b2cfc80861427c4063cce0d13241801a1d
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
67b794480aaad0e1958df2988671b78ea03b76e1 28-Sep-2009 Tom Taylor <tomtaylor@google.com> Don't use auto-requery

The default behavior with CursorAdapter is to do an automatic requery when
the content has changed. This happens on the UI thread and can cause ANR's.
Handle the content change notification ourselves and do a new query asychronously.
Update ConversationList to handle content changes and do a background query,
rather than relying on the auto cursor requery. The rarely used ManageSimMessages
can still do an auto-requery, but it's less likely because we don't write to nor
change messages on the SIM. Also, a different content observer is already registered
to notice SIM changes and update the message list in the background.

Change-Id: I42ac518b315ea55ff6edbe0a912bf60c7f868ea5
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4d620299628c41f9149024f0cf9f42d008aedcf5 25-Sep-2009 Tom Taylor <tomtaylor@google.com> Config to disable audio attachment

And an option to MmsConfig to allow an overlay to turn off the
ability to attach an audio file to an Mms message.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f3de2dc48cf15c04f6e545e98cfff0e4faa378d1 24-Sep-2009 Wei Huang <weih@google.com> tweak capture image intent extras.

Change-Id: I934389f552036e35ca615d2a51d32b08503ff84e
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
61138063f3486c29a5bbda77fdf9423dcb26f949 24-Sep-2009 Tom Taylor <tomtaylor@google.com> Fix forward focus

When forwarding a message put the focus in the recipients editor
rather than in the message editor.

Change-Id: I2f22be2cb7f130143c41785503e70280d3d74403
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
77864ad24e1a12709c7e226546b24badc22806bd 23-Sep-2009 Tom Taylor <tomtaylor@google.com> Handle multiple recipients in Contact Header

Clear the avatar and presence on multiple recipients. Show a multi-recipient avatar.
Show the actual names, rather than recipient count.

Change-Id: I1230f7260811e5a1a7e797f26430e3ab1d2eeb21
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d62ef06699b3ca5048c5642bd50300e9a2eb04a1 23-Sep-2009 Tom Taylor <tomtaylor@google.com> Fix draft bug

Fix a special case of working on a draft and then getting a new intent for that same
draft. Recognize we've got the same conversation rather than trying to save the draft
and reload the same draft. Add more logging to Conversation and WorkingMessage and move
the common logging code into LogTag.

Change-Id: I1388967f3f2e7520e08730036243f958574a6001
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
34b48c16fc630bca88b9c4657bd19e6718a8f83e 23-Sep-2009 Wei Huang <weih@google.com> fix bug 2129498: take full resolution pics when attaching a pic taken from "Capture picture" attachment option.

- pass intent extras of "output" and "MaxNumOfPixels" to the intent action MediaStore.ACTION_IMAGE_CAPTURE.
- in onActivityResult, read the jpeg from /sdcard/mms/tmp_scrap file.

Change-Id: I86fdd5015de63e7d71974b77f02780df10d01fc7
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
424b9e2a1f9f186bfa0171872bbdb96b7be24d8d 22-Sep-2009 Tom Taylor <tomtaylor@google.com> Use real contact list

When initialize the header widget, use the "real" recipient list from
the conversation.

Change-Id: I28bac18fe453730f96bd6daf41a65d4e667c3279
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4c86b97e7aa0489813c34c13546fbbbcaa7b4897 18-Sep-2009 Wei Huang <weih@google.com> Fix bug 2101262: when forwarding a message, make sure to clear the message history from the old thread.

Change-Id: I6192ddb665f05cce2aaa94680fa14f84dc871de5
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c44a89a040956a7b9635de4a9bcf1d7230692750 17-Sep-2009 Tom Taylor <tomtaylor@google.com> Add MMS unsent limit

Don't let unsent Mms message pileup. They chew up a lot of memory. After
a configurable limit (default 4), don't allow the user to send any more
Mms's.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
77098247e64fa81b7f52457e364b81a8dbcb499a 16-Sep-2009 Tom Taylor <tomtaylor@google.com> Fix a monkey crasher

Protect against getting a null WorkingMessage.

Change-Id: If76912ceb28eed09705e814ac769757b0487f6dc
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
dc58429bf08e9d5ba8c43f0ac21e7cd18ea8cb06 16-Sep-2009 Tom Taylor <tomtaylor@google.com> Add start activity flag

When launching external activites (e.g. youtube, contacts, dialer, etc.) from
the Messaging app, use a particular launch flag. When a user goes back to home
from that external app and then back into Messaging, they won't end up in
the external app again.

Change-Id: I5b6158d381e4eac3b6d5c6bfcda97814b2f6d029
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9242286c35743422051d439d7460cd0a1426899c 16-Sep-2009 Wei Huang <weih@google.com> add more logging in MMS. Try to catch an OOM error, and dump hprof data when it occurs.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c6482ba8c841c539dd67be432cbc59bb597a771f 15-Sep-2009 Wei Huang <weih@google.com> fix bug 2119357: don't pass null to TextView.setTextkeepState().
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3f5ec94318c06c5e4827a5f7c40205a8335eb758 12-Sep-2009 Tom Taylor <tomtaylor@google.com> Fix logging

There's a situation where the incoming intent has a '%' in one of
the extras. When logging is enabled via setprop the log()
function called and trying to format the string causes an exception because
there are not format parameters. It turns out in CMA, we're only
passing strings, but no parameters, so simplify the logging function
to only take a string. We could make this change in other Mms files,
but for now, this one is the only one with a report of a crash. Users
won't ever see this because logging is off by default.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
747a4ee2ca85f7280f1be7258f23b3bd14d6f95d 11-Sep-2009 Satish Roddom <satishroddom@motorola.com> Cursor position issues in composer

Several cursor position issues where cursor position is not retained.

1) Type some text in 'Text' field. Place the cursor in middle of the text.
Attach any media. Cursor moves to the end.

2) Again place cursor to some other position. Say in the middle of the text.
Remove attached media. Observe cursor is moved to beginning.

Fix: 1. Used method setTextKeepState() instead of setText() in drawBottomPanel()
2. Removed the code of calling setSelection() in loadMessageContent(). This
is not required now, changes in drawBottomPanel() will take care of this.

Change-Id: Ia78b0b878e70a75e1c2ffcaf9a46bcbdba7b80e0
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d9d7479a8c9e10b7b3f39137e28ed0f283e4a257 11-Sep-2009 Wei Huang <weih@google.com> fix memory leak in MMS (bug 2021095); don't rebuild Contact cache and draft cache as frequently.

- fix a memory leak reported by Motorola. We weren't registering a Recycler listener, so weren't getting called back for onMovedToScrapHeap() when done with the ConversationHeaderViews, and thus not exercising unregistration for contacts changed listener.

- moved some tasks from ConversationList.onResume() and onPause() to onStart(). We were rebuilding the draft cache and contact cache in onResume(), which was too aggressive. Also, we no longer rebuild the draft cache anymore. I think it was defensive to do so, and I think draft cache is getting updated correctly in the right places (in CMA.onStop and onNewIntent) so we don't have to to play safe by doing unnecessary work.

- don't register for presence and contacts changed. We don't display presence directly in CMA ourselves anymore, and instead use ContactHeaderWidget, so we don't need to listen for presence changes there; for contact changed observer, I think it's too much to rebuild the contact cache for any contacts changes in the contacts provider. Instead we compromise and rebuild the contact cache in ConversationList.onStart(). This is a tradeoff, as when sitting on the CMA or ConversationList screen, we won't update if Contact changed. However, re-entering ConversationList will trigger the update if there is any.

- beefed up logging a bit more...

Change-Id: I97f1d7eae3ca5d3d069977e2c9fa0d7b0500dc3e
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
6cc8b68c6b0956c51601065536f1dcd0494eef6e 11-Sep-2009 Tom Taylor <tomtaylor@google.com> Adjust keyboard setting

Adjust the keyboard mode so the keyboard doesn't automatically open
when opening ComposeMessageActivity.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3e10898d774b0005fc776865216651346503024b 10-Sep-2009 Tom Taylor <tomtaylor@google.com> Confirm delete locked messages

Allow a user to delete a locked message, but show a different
dialog alert so the user will know they're specifically deleting
a locked message. Also, fix deleting a thread. Use the same code
for deleting a thread as used in ConversationList where we check
to see if the thread contains locked messages and if so, present
a different UI.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
70262ed72605a86706b3a63810d34adbfd0868a7 09-Sep-2009 Wei Huang <weih@google.com> Fix bug 2099044: don't display "convert to SMS ..." too eagerly.

- basically, don't display message status changes when saving draft (done only in onStop and onNewIntent). I think it's sufficient to display the message status when

- the user adds/removes attachment and subject.
- the user hits send we reconcile the message protocol before sending.

Change-Id: If10e5101f11a645b66d6082fa343709fa90887ef
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
923c4c7e9afb8e364d4a93afa0eb6394485d3637 08-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Upgrading to new Contacts email filter APIs.

Also showing avatars for email-based messages.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f79b803adc0cee3778cf6aac52d203896cde5d95 04-Sep-2009 Christian Gustafsson <christian.gustafsson@motorola.com> Resize images when they exceed the MMS payload size

Code was in place to resize images when they exceeded the maximum
MMS dimensions. But the case where the byte size of an image was exceeding the
MMS payload just resulted in an error message to the user. This is a problem
with high resolution images taken by the devices camera. These images fit the
MMS dimensions but routinely exceed the MMS byte size.

Extra fix for GIF images. The GIF decoder does not honor the scaled decode
parameter. Code now calls the Bitmap scale function when this happens.

1. Change the getResizedImageData function in UriImage.java to account for
byte size as well. If the resulting jpg exceeds the byte size attempt to
reduce the quality on the compressor first. But not below 50%. Should
this step not work then rescale the image to a lower resolution and try
again. Do this up to 4 times.
2. Change resizeImageAsync in MessageUtil.java to pass a maximum bytes size.
Account for a MMS overhead of 5000 bytes in this case. So the maximum
image size will be msConfig.getMaxMessageSize() ? 5000.
3. Update 3 places to call resizeImageAsync instead of showing an error
message to the user.

Change-Id: I33427fe79c42677e24acf0390ae834d58205c8f1
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
28267695b591d5d9cc176e5f199eb2aef3f9fcd3 04-Sep-2009 Tom Taylor <tomtaylor@google.com> Save draft

If the user is in CMA and hasn't created a thread and then receives an SMS,
the new SMS would get jammed into the CMA the user was in the process of
editing. With this change, we save (if necessary) the existing work as a
draft, first.

Change-Id: I9f2018b6a6636194f5e978a15247238ffb27f0e3
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1a0ec0c1576cab49e02a1dab796ed2be33f0a0a5 03-Sep-2009 Wei Huang <weih@google.com> don't crash due to bad contact url.

Change-Id: I826ca5e35f917e5afa0d7686b5e1ab4d85858a3b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
fa1c08f58afd8246b223c2a55a4ba0a6dac39526 01-Sep-2009 Tom Taylor <tomtaylor@google.com> Attachments in landscape

Use a compressed (vertical) layout for the attachment views in landscape mode so
there's enough room to see at least one new incoming messages.

Change-Id: Ic0df528e94064e0da7f591083de1799c683498be
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
08c99d3e1045d9d5dd27d0845e0647d7664bfb4f 01-Sep-2009 Mark Wagner <mxw@google.com> use resize mode so the virtual keyboard doesn't get in the way as much
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f539c6440cffefab7b4677cd6a3ee9f019317bdc 01-Sep-2009 Wei Huang <weih@google.com> when handling onNewIntent(), we need to requery for message history if it's for a different conversation.

- refactor the query code for message history so onNewIntent() can call it if the conversation is different.
- when forwarding a message, need to handle the result from startActivityIfNecessary(). If the result is false,
we need to handle the intent ourselves.

Change-Id: I822e4e2f900877ae6a5aa1a346514f90dc29aeb6
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
120953551224a018618b1397ac790812b8a66f20 31-Aug-2009 Satish Roddom <satishroddom@motorola.com> Cursor issue in draft messages

Open a draft message with some text. Issue is cursor is at the starting
position of text editor instead of end of the text. This change sets the
cursor position based on the length of the text.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
2c8a398f5562569d46215dec1455c1dc04b3ba1a 28-Aug-2009 Mark Wagner <mxw@google.com> when binding the contact header widget use the right list of contacts.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
59be3105fb43b5e9fcb363981dfa3de31c1bc2a8 26-Aug-2009 Wei Huang <weih@google.com> support intent extra parameter "address" for launching ComposeMessageActivity. If the intent has no "thread_id", and doesn't contain a data uri, then look for the "addrss" field.

- this is to support testing of

adb shell am start -a android.intent.action.VIEW --es address <number> --es sms_body <body> -t vnd.android-dir/mms-sms

Change-Id: I38c0dff2f0cc20ba0a0dbafdb17660c5eacb4b49
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b22b30999e7d65d9a9a1991c1e409315a2c5ba99 26-Aug-2009 Wei Huang <weih@google.com> fix bug 2040009: when we hide the subject editor in CMA, make sure to remove the text watcher, otherwise it will continue to get onTextChanged() with '' as the string and make us think it's a MMS message.

- when we get '' in subject editor text watcher, we merrily call mWorkingMessage.setSubject(''), which is interpreted as forcing a subject and causing the message to be converted to MMS. So let's not confuse the poor text watcher when the subject editor is hidden.

Change-Id: Icaca2e482244af3e9dc8dd7a48c8abf75b88fc39
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
64d0ce47710fb671b0d4d7f2e8789757085eeac9 25-Aug-2009 Chih-Chung Chang <chihchung@google.com> Pass max recording duration parameter to video recorder.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
88ee29139d831325875c8d4e05d3edf6fa05d510 25-Aug-2009 Wei Huang <weih@google.com> bug #2060208: in CMA.onNewIntent(), compare two conversations by their thread ids instead of direct Java references, which could be different in some cases.

Change-Id: Ie3a27e4cbd9bfc4d0912080d6cc99dc9cb85654b
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
0be5770b07cbd03eea9cd821ef02c8480020b162 17-Aug-2009 Mark Wagner <mxw@google.com> updating the title bar (ContactHeaderWidget.bind) when losing focus
from the recipient editor
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
322a547ba74caade04b22158fa8908bcb47add26 21-Aug-2009 Satish Roddom <satishroddom@motorola.com> Compose Message "To" field allows adding sequence of characters as contact

When we select this option, this sequence of characters (which is neither a
valid email address nor a phone number), gets stored in contact with type MOBILE.

Fix: In function canAddToContacts, adding a check to validate whether the contact
to be added is a valid email address or phone number. If not, user will not be shown
with the option "Add to Contacts".
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
293000e15498b71a4986d7247e60fe8bdaa05a4b 19-Aug-2009 Wei Huang <weih@google.com> fix an issue where our http socket timeout (20sec) is too aggressive for connecting to VZW mmsc, which could have up to 48 sec delay responding to a request. Make the MMS config socket timeout of 1 min (configurable by mms_config.xml). Also fix a bug where we write 8k extra of nothingness when saving to sdcard.

- add getHttpSocketTimeout() to MmsConfig. Use in HttpUtils when creating a new AndroidHttpClient.
- manually integrate a change from open source, fixing a bug where we write up to 8k of empty bytes to the end of the content when saving to sdcard.
- also added logs to dump content type.
- tweaked the log when we throw a MmsException when we can't get the duration of media content.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
fc0070e2bd326b9a4290d62dcbf6d8ff29c6ae89 20-Aug-2009 Tom Taylor <tomtaylor@google.com> Auto-open soft keyboard

On devices without a hard keyboard, auto-open the soft keyboard when a
user composes a new message so they'll be all set to start entering recipients.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e7c8092e952d9d5edbc1c0b62e5f872c4d21d2b4 18-Aug-2009 Ondrej Novy <ondrej.novy@gmail.com> Mms app: Show pending/failed/success icon in MessageList.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b348f222ee27426e0a038232d2a5b4b863f7ad9c 18-Aug-2009 Tom Taylor <tomtaylor@google.com> Hide message edit with slideshow

When the user adds a slideshow with more than one slide to a message, the
message area is normally hidden. However, after exiting editing the slideshow
and re-entering CMA, the edit field was still improperly visible.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
396a06af4e393f5aab3864c43392a67c60715d38 17-Aug-2009 Tom Taylor <tomtaylor@google.com> Don't show convert message

When forwarding a MMS message, the user would see "Converting to MMS" even
though the message was already an MMS. There are a couple of situations where
we are initializing a message where we are too zealous showing the message.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
58a68e767b8f859a863976f4094757218f6cdf8b 17-Aug-2009 Tom Taylor <tomtaylor@google.com> Fix copy to sdcard

The code for checking for something eligable for copying to the sdcard
forgot to set its result.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
edd39351defc331fc268a6ed88338f64fe6f17cf 12-Aug-2009 Tom Taylor <tomtaylor@google.com> Support multiple send intent

Allow a user to send multiple pictures/videos in an mms message. Each
gets added as its own slide.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
07dde49d355fbe188b1ead3276544c4a324ebd11 07-Aug-2009 Tom Taylor <tomtaylor@google.com> Drm work to support ringtones
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f788737b03ff8f3f9f1302f944333b4e1d287820 03-Aug-2009 Mark Wagner <mxw@google.com> move to ContactHeaderWidget
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
976506f3ecfce6c9a0dd6f3e5c8d9f2ed9feae03 07-Aug-2009 Satish Roddom <satishroddom@motorola.com> Cache not getting refreshed when deleted thread from ComposeMessage screen

When a thread is deleted from ComposeMessageActivity it is not getting deleted from cache.
And sometimes the deleted thread's address is getting displayed while forwarding other SMS.
Although cache is refreshed when a thread is deleted from ConversationList, when deleted
from ComposeMessage, it is not refreshed. Adding code to refresh the cache on a thread deletion...
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e456dc390dc5f3eeb3dd4b4f37d9bd4a74efe6c8 07-Aug-2009 Satish Roddom <satishroddom@motorola.com> Video capture force close issue

Compose new message, go to options, attach, record video. After recording,
press cancel. Got force close.

Root cause: When we press cancel, in addVideo() we are getting uri as NULL.
Same is passed to setAttachment() and down the line it results in crash.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ce781a2d55d43ac6b6b6af9a399f6f9ca2145526 05-Aug-2009 Tom Taylor <tomtaylor@google.com> Move SMS->MMS limit to mms_config.xml

When a user types a long message, longer than a single SMS can handle, it
gets broken up into pieces and sent as several SMS's. Once the message is longer
than 3 SMS's, it gets converted to MMS. Move that threshold limit into mms_config.xml
so each operator can set the SMS to MMS limit for themselves.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
69cdbeb42c870826d5ae8caad87e644a82763226 04-Aug-2009 Satish Roddom <satishroddom@motorola.com> Send option not enabled after composing message with slides

Issue: Compose a slideshow (with 2 or more slides), and with some valid
destination address. Say done.

It is seen that the 'Send' button is not enabled. User has no way to send
a message with slides directly. It has to be saved in draft and opened.
And only then the 'Send' button is enabled.

Reason: When the done button is pressed, 'Send' button of the Attachment
editor is not enabled. Fixing this by updating the Send button.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1c59b33adcdc15a035fce8bd37cd02cd063b4274 30-Jul-2009 Mark Wagner <mxw@google.com> avatar work
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3b100dd8425ea38ea70c6d29ef0d85aa85482ae5 13-Jul-2009 Richard Meng <richard.meng@motorola.com> Handle SMS during CDMA emergency callback mode

If in emergency callback mode, user tries to send a message,
popup a notice provided by Phone pacakge (on change 309).
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f96423bc61528310b3db01930883d25e66866b99 03-Aug-2009 Tom Taylor <tomtaylor@google.com> Dismiss dialog

The monkey found a window leak. When a user chooses a smiley, the dialog
was going away but not getting officially dismissed.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5cbf11ad39767245f1a9ef467963d270f19a5fab 22-Jul-2009 Tom Taylor <tomtaylor@google.com> Fix a MMS crasher

This is the fix for bug 1975670, though if you read that bug, you'll swear it's
talking about a different one than my fix description which follows. When a user
receives a MMS with an attachment and goes into ComposeMessageActivity to read it,
a new WorkingMessage is created in case the user types a response. Once inside CMP,
the user may click on the attachment (to see the picture, etc.). Eventually, CMP's
onStop gets called. The WorkingMessage is empty so it is discarded. Once the user is
back in CMP, they're sitting on a time bomb with a discarded WorkingMessage. If they
try and delete the thread (the original bug), they'll get an exception that the working
message has already been deleted. This simple fix is to undelete the WorkingMessage
in onRestart.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
560cf61c66742e2134f42dc65681091127683c0c 21-Jul-2009 Tom Taylor <tomtaylor@google.com> Fix a wrong resource id

Fix a crasher where the wrong resource id was used and resulted in a null
text field. After looking up a contact and getting presence info, trying
to stuff the status into null didn't quite work.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ca90541d95becdc03a01f51d23c885dc635c0226 18-Jul-2009 Mark Wagner <mxw@google.com> New title bar for compose message activity (presence, etc)
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
07fd438290f18696092b00813ff1c57ac16fa81c 16-Jul-2009 Tom Taylor <tomtaylor@google.com> Add optional recipient limits

Feature request 1932398 : limit the max number of SMS recipients to 10.
Fixed by adding a config value to mms_config.xml that lets a carrier specify
a limit to the number of recipients. The default, as checked into master here,
is no limit.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
28433bd3a11e22e8ec9383053b74a7eb6454b463 15-Jul-2009 Tom Taylor <tomtaylor@google.com> Port a change from donut to master

Port a change from donut to limit the size of a video attachment
based on the size of the current message.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
5bdedada04dd261f406f55161b16e73a0ce61d55 08-Jul-2009 Wu-cheng Li <wuchengli@google.com> Specify video capture size limit. do not merge

Fix b1660028.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9ebc85c812d3c6c6ed6cec13d9cd72a452049560 08-Jul-2009 Tom Taylor <tomtaylor@google.com> Log the message state when throwing an exception.

The monkey is able to generate a situation where we're coming into
ComposeMessageActivity thinking we've got an MMS message, based on
the message flags, but the attachment flags indicate the MMS message
hasn't been initialized. Log the message state so next time this happens,
we can track down the source of the problem.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9c9cedd75f5490a99a03060335aaf3f89c6a4313 06-Jul-2009 Wei Huang <weih@google.com> fix a bug found by Motorola team. Make sure we show the toast for the unknown error.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d0480376fabb519abb703acb42209d2e0d9dfa7a 24-Jun-2009 Madhav B <ridhishguhan@motorola.com> Changes to stop locked messages from getting deleted

Specific list of changes that are made as a part of this patch are:
1. When a user tries to delete a locked message.
The locked message doesn't gets deleted and it pops a toast
that locked messages cannot be deleted.
2. When a user tries to delete a thread containing locked messages.
Only the unlocked messages present in the same thread are getting
deleted. The locked message which are part of the thread are not
deleted.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
331864544ec51ba6807fc5471cc6d537b7fef198 08-Jun-2009 Mark Wagner <mxw@google.com> add search capability
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
8fe0dc7bde259488a917f3c246a5020b992cfe8a 12-Jun-2009 Tom Taylor <tomtaylor@google.com> Fix bug 1786333: "Add to Contact" options is displayed for a recipient in Contact list - recipient is a STK response

Don't show the "Add to contacts" menu for contacts that have names or numbers beginning with *, %, or $.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e24e5684d04e7f6337bc90377422f84fcf2b1f0d 11-Jun-2009 Tom Taylor <tomtaylor@google.com> Fix bug 1909820 - Modifying Contact name does not allow to send SMS/MMS.

The real problem in eclair was the recipient editor wasn't getting loaded
with the contact. Once that was fixed, modifying the contact name (the
original bug) seemed to be no problem.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
458dea8d1858e418b6918f477d0139335b14ff45 10-Jun-2009 Tom Taylor <tomtaylor@google.com> Fix bug 1808964 - Remove presence polling.

Register a content observer to listen for presence changes and immediately update the
presence state of the header of the ComposeMessageActivity.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
bbb630b93bb63ee28ec7aa32a47412d6d8d9d280 08-Jun-2009 Tom Taylor <tomtaylor@google.com> Do not merge. Fix bug 1635579 - Make build system configure UAProf.

Don't rely on GConfig anymore for various settings. Instead, grab
them out of mms_config.xml.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
440071bb40c9c7bac5870a8bb3110edbe665c702 04-Jun-2009 Tom Taylor <tomtaylor@google.com> Add initial UI to lock/unlock a message to prevent the message from being deleted.

First cut at the UI to allow a user to lock (or unlock) a message and prevent it
from being automatically deleted by the recycler.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
1d98ae0b203e01034ddead4214d1520ce863a23b 22-May-2009 Ficus Kirkpatrick <ficus@android.com> New data model for contact information.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
86a1cf79bf92dbb2b9d09431379bff6de83c2581 19-May-2009 Tom Taylor <tomtaylor@google.com> Fix bug 1635579 - Make build system configure UAProf.

Don't rely on GConfig anymore for various settings. Instead, grab
them out of mms_config.xml.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
ab6141d9c98f1a6024fac52fe3c897076d8549c0 16-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Add a new Conversation class for protecting access to conversations/threads.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b9bcfdd226bbb6f5b265f925343375192963d58a 11-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Move in-progress message state out of ComposeMessageActivity and into its own class.
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
37321876549776417f035118f157d9531f73de6b 02-Apr-2009 Wink Saville <> AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.

Automated import of CL 144245
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4bc4156cff14034f49ea89b9dd879bddeec6b363 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c008bb042ed68d3b68e1e37730f9fa4ea69e00bc 28-Mar-2009 Ficus Kirkpatrick <> AI 143362: am: CL 143211 am: CL 143007 When discarding an MMS message, also delete any associated SMS drafts.
This will keep intermediate anonymous drafts created in the process of switching
activities (e.g. to attach a picture) from being left behind.
Original author: ficus
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143362
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
86bcfc0a48ee7baf6a9221711bce071a2b7f3caf 28-Mar-2009 Ficus Kirkpatrick <> AI 143352: am: CL 143201 am: CL 142983 Bail out early from saveDraft() if we have already discarded a message to keep from
creating a bogus thread.
Original author: ficus
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143352
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
227c061247fb53150330a1c11bc163881def7ef6 28-Mar-2009 Ficus Kirkpatrick <> AI 143211: am: CL 143007 When discarding an MMS message, also delete any associated SMS drafts.
This will keep intermediate anonymous drafts created in the process of switching
activities (e.g. to attach a picture) from being left behind.
Original author: ficus
Merged from: //branches/cupcake/...

Automated import of CL 143211
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
598ca14f5d7d26d6d5125d8fe0d07e50f066ff98 28-Mar-2009 Ficus Kirkpatrick <> AI 143315: am: CL 143166 am: CL 142862 Allow anonymous (recipientless) draft messages to be saved when we have no choice but to
either save the message or throw it out and can't give the user a choice with a dialog.
More aggressive refresh of draft cache to catch cases where the thread ID may have changed.
Avoid losing track of proper MMS state in image attachment add failure on resize.
Original author: ficus
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143315
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
23406dbb9d9a15c56b995d99f1dfa5d933db05b4 28-Mar-2009 Ficus Kirkpatrick <> AI 143201: am: CL 142983 Bail out early from saveDraft() if we have already discarded a message to keep from
creating a bogus thread.
Original author: ficus
Merged from: //branches/cupcake/...

Automated import of CL 143201
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
76c89496956e33cd111cb0eaf5fe131a1b542d1a 27-Mar-2009 Ficus Kirkpatrick <> AI 143166: am: CL 142862 Allow anonymous (recipientless) draft messages to be saved when we have no choice but to
either save the message or throw it out and can't give the user a choice with a dialog.
More aggressive refresh of draft cache to catch cases where the thread ID may have changed.
Avoid losing track of proper MMS state in image attachment add failure on resize.
Original author: ficus
Merged from: //branches/cupcake/...

Automated import of CL 143166
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d49a5ae921cc531faec9530896ae9e0a5f3bfe66 26-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@142724,142724
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
71cf4b0b2901590fffd04c7cdeba8d1c05c4c214 26-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142768,142768
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ce10738e05b3d51d00999b34995586eafc167ae5 26-Mar-2009 Tom Taylor <> Automated import from //branches/donutburger/...@142705,142705
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
c0c78f771e7ce097103241c0da02959319b58709 26-Mar-2009 Ye Wen <> Automated import from //branches/donutburger/...@142704,142704
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
19be5b3fbe66749f6bc030c9776936b0602ed62f 25-Mar-2009 Tom Taylor <> Automated import from //branches/master/...@142741,142741
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4522cafe21816d43626b8ac42e1c5d3667212a97 25-Mar-2009 Ye Wen <> Automated import from //branches/master/...@142740,142740
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
11e40684ed6c2c2fff5990ff5ccd0a5d775189b9 25-Mar-2009 Wei Huang <> Automated import from //branches/master/...@142672,142672
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d56917ab5c0beb4cca782973bc2e4631b82a3d50 25-Mar-2009 Wei Huang <> Automated import from //branches/donutburger/...@142505,142505
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
3d2107af884e95720b72201e99d9ab4bce9bba3b 25-Mar-2009 Tom Taylor <> Automated import from //branches/master/...@142400,142400
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
34390cc77dd159b3aec558e26d4fb0674104dae4 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142388,142388
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
629b0f7b26a2abd77aab65fa6298321189730a92 25-Mar-2009 Tom Taylor <> Automated import from //branches/master/...@142350,142350
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2d54f0192a7204138c0a2ca26d8f552a749a0d45 25-Mar-2009 Tom Taylor <> Automated import from //branches/donutburger/...@142393,142393
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
b5e7fe89067b3f9473d0c83cd57c7c6d2598cc53 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@142386,142386
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
03aa027ef8fdf32d5de715cfdf1da51d27740d25 25-Mar-2009 Tom Taylor <> Automated import from //branches/donutburger/...@142349,142349
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
9de7fc851de8efe7f292a5e4120a4475090950a6 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142252,142252
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
614c3384b83966ec1d8d47c562d4a1cd3b7b55d5 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@142247,142247
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
4d75e8e385b76d0f12234089e8a1aa07041e57b7 25-Mar-2009 Tom Taylor <> Automated import from //branches/master/...@142086,142086
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
07e7775d5a792334b89436bf5479bfd5abeeb8c4 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@142058,142058
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
409cd4a6298902912a5ee57282c862b3b332c791 25-Mar-2009 Tom Taylor <> Automated import from //branches/donutburger/...@142084,142084
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
553defae65b35a966269f2ece997863a13eda574 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@142056,142056
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
afb09d77dbeceb3d40d9a5a8e8bd2c0ecf9ce125 25-Mar-2009 Wei Huang <> Automated import from //branches/master/...@141987,141987
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
bcce53d80fc6b539279f622532eba52a26aa4fd3 25-Mar-2009 Wei Huang <> Automated import from //branches/donutburger/...@141986,141986
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
77f8431915049ae84c17b689110fd7206c4e5a80 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@141835,141835
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
749055e2a1e2e6c9bd18e0e589f5c0170457a306 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@141833,141833
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
35a74a9e0ee7c171c6e17f0eda4b0df0253f8364 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@141740,141740
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
46997de8d763f60dfc64fa94ee4220851d8067fe 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@141738,141738
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f5983f05c74dd498bb0ca2485e32531cc764e05b 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@141538,141538
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
d893545a4c7b71d35cb52888c8c0722d09dd954f 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@141536,141536
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
2d3e7a1cbe53d4dc4b6f8157e35866e441938fb4 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@141432,141432
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
28918ff518a3724c05e8088e46edf36fcfb92c6f 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@141430,141430
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
ece5890ca6c6075ed81324258a4e3991cc45a00f 25-Mar-2009 Tom Taylor <> Automated import from //branches/master/...@141422,141422
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e96c6d3009f2b708ff727b650874c65dae34708e 25-Mar-2009 Tom Taylor <> Automated import from //branches/donutburger/...@141421,141421
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
f64874be0db402e7b2061ee4049c0e508d8fa93d 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@140920,140920
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
47489b213932b2b6e40d129ead466959bf217d02 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@140919,140919
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
7d3e1caa6000b0bbab0716b1815c2c7177d67948 25-Mar-2009 Tom Taylor <> Automated import from //branches/master/...@140862,140862
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
644f7a81b2ef4ae9c67f93d1e75c259b801eeb8a 25-Mar-2009 Tom Taylor <> Automated import from //branches/donutburger/...@140861,140861
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cd87a4285599aeb732e4590136a5c103e1c42ccd 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/master/...@140858,140858
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
e8bdd0b8135561699fcffb2c5b6db3f93505683e 25-Mar-2009 Ficus Kirkpatrick <> Automated import from //branches/donutburger/...@140854,140854
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
00a6a244e1743be468bd3ab709781ef9751aa8c2 25-Mar-2009 Mark Wagner <> Automated import from //branches/master/...@140784,140784
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
cbbd348cd4116f3b4362740c6cb8bd9e394f37c7 25-Mar-2009 Mark Wagner <> Automated import from //branches/donutburger/...@140779,140779
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
591d17e9a51bb9f829d6860dc7aa0bad25062cd5 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
72b7fda4ff5e94ba1a13c41601ac1cd61c0d6663 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
bd09a4b8c2d1f922f1459c4d7b61e7e87ed4ddf3 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136745
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
61c5973c3cda88d614b5c8491982f1d3c3ded897 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java
1a4b3a26659d034b9df52fc6a0e184cffe7451ae 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
e82e62f94d4ba4ac139faf055f40fbbc2b99b551 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.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/ui/ComposeMessageActivity.java
8eed706474910ccb978acda03e85d3261037da6e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Mms/src/com/android/mms/ui/ComposeMessageActivity.java