Mms: The SIM message interface cannot refresh when SMS arrived

Save SMS to SIM card successfully after APP do not notify to update
UI.

To fix it, need notify UI according to URI.

CRs-Fixed: 742829
Change-Id: I780b775887747016c5ee89869c0d051cf6ce5ec9
Mms: Do not show tips again when replace any attachment with Contact vCard

The method removeAttachment(false) will change the value of mMmsState,
so the toast will show again when the mMmsState change.

Remove the method removeAttachment() to make sure tips will not show
more than once when replace any attachment with Contact vCard in mms.

CRs-Fixed: 669194

Change-Id: Ib0f07a8c4501ee691c3d96b55b215f4d01d28593
Mms: Fix the vcf's name is not correct.

Mms doesn't set media name for pdu parts in SlideshowModel.java.

Set media name for pdu parts when calling SlideshowModel.makePduBody().

CRs-Fixed: 740907

Change-Id: I7c04680730f1ad143b2b4b0387613a8b1263b048
Mms: Fix can not search message via subject

Do not support MMS subject search.

Add support for MMS subject search.

CRs-Fixed: 747351

Change-Id: I671d84c6ac8795790f8c7883dcf307e47b692010
MMS: Fix can't show send or receive time

Don't include original time when merge forward messages.

If original time is not null,add it into forward content.
There are two ways to forward messages. One is from the
Compose Message's action bar menu, the other is from the
option menu. Delete the one in option menu.

CRs-Fixed: 750951

Change-Id: Ib1262e87654fbef0a559e0ff90bd5c45ec3067f5
MMS: Fix Screen is not smooth when scroll to read long MMS

When scroll the mobile paper show screen the ScrollView is
scrolled by the scrollby method and did not call the super
method.

call back the same super method,and remove the scrollby
method make the ScrollView to scroll quickly.

CRs-Fixed: 732278

Change-Id: I1c530fc4569b93b22afe68c2106244959efde65d
Mms: Dispaly wrong text message limit for per conversation

The default value of number picker larger than the max value.

Change the default value of number picker from 10000 to 1000.

CRs-Fixed: 752476

Change-Id: Ib5433ee28e0d5dc099d6e9bfa8cfdb3ab231ab14
Mms: Fix can't update the draft on widget timely

Do not notify the widget when a draft is saved, that cause
the widget is not updated.

Notify the widget when a draft is already saved.

CRs-Fixed: 752473

Change-Id: Ia62fdb3c79eca1b28d6b9f332b5fb8d7d999ebb2
Mms: Fix Slideshow display white screen after dismiss alert

The smil-player's recording state in source code is different
from users to see.

Change code to keep them consistent,the player reloaded
and play in onCreate method.

CRs-Fixed: 693684

Change-Id: I63d285707611454dbc6ead62edd2a825590c5de7
Mms: Fix notification on status bar not disappear.

Notification is canceled only when the message is read in folder mode.

Clear all the notifications when message list shows in folder mode.

CRs-Fixed: 724831

Change-Id: I23f33e9a1090f18f3105f0b9a7ed52b5316ba565
MMS: Add config showing retry error toast or not

It's original design showing toast when failed MO/MT mms during retry.

Add config showing retry error toast or not.

CRs-Fixed: 751673

Change-Id: I4b02ae057d253a72add3c600413ad9d23a195417
MMS: The delivery report display send failed

If the status's 31-16 bits is not 0, means this is a CDMA sms, and we
should not use 31-16 bits to check sms status.

Same code change as CR621802, check whether it's a CDMA
sms status first.

CRs-Fixed: 748884

Change-Id: I37bd6ca6eac0c3a83872284d0b4438c016da6ec6
MMS: Fixed Can't forward the MMS in folder mode

There's no forward function.

Add forward function for slideshow.

CRs-Fixed: 752468

Change-Id: I50f3fc29d2dd05ac1aa4ae3314e649f3dc726ef2
Mms: Fix MMS notification isn't disappeared.

From notification launched message detail, mms didn't
update the 'seen' field in database for message,
It caused message's notification cann't disappear.

Add update 'seen' field from 0 to 1 operation
in message detail's onCreate().

CRs-Fixed: 755385

Change-Id: I2c0554cba9ef3dcaefc7ce72fcdb0e67d99c4796
Mms: Put the AudioInfoView below the ImageView

The set text layout setting only control the text's position relative
to the picture.

Put the AudioInfoView below the ImageView, so if set text layout to
text on bottom, text will show at the bottom of the slide.

CRs-Fixed: 670785, 636486, 730578

Change-Id: I187f09ae06ae1d5f4effe4ef347a686f0170be81
MMS: Fix Can't play audio or picture in MMS

The mLookupUri is null, the system failed to find an activity
to play audio file.

We should use the right uri passed to the ViewAttachmentListener
object as attachmentUri to set up the intent.

CRs-Fixed: 752430

Change-Id: I659d104b004318c98cffb0b4915ba55ff7d200d9
Mms:Fix can't pop up slot selection when send a new SMS

If the recipients editor is visible,will not show slot selection
and send message directly.

When the recipients editor is visible and multi sim is enable
add sendMsimMessage() to show slot selection.

CRs-Fixed: 752417

Change-Id: Ia9422f41a2962f61ba4e58ad8b0594e5d7e4eca6
Mms: Fix no SIM card insert still could copy message to SIM card.

Always show "copy message to SIM card" menu regardless of
whether has card.

Don't show the copy menu if no SIM card.

CRs-Fixed: 756086

Change-Id: Ic7ad2c8d658839c65b6c045709a5b0f6d7459eae
Mms: Fix force close once during MTBF test.

Fatal exception happens because lack of
"android.permission.MANAGE_DOCUMENTS" permission in Mms app.

Add "android.permission.MANAGE_DOCUMENTS" permission for Mms app in its
AndroidManifest.xml.

CRs-Fixed: 752265

Change-Id: I9fc2f15d458edde67ff2f66ade726b8b0537793a
Mms: Fix crash when delete more 1000 messages.

Mms application query locked messages and read reports
from database with more than 1000 "OR thread_id=num"
parameters before delete messages. It caused sqlite3 throw
"Expression tree is too large (maximum depth 1000)" error.

Change all "OR thread_id=num" parameters
to "thread_id in (num1, num2...)".

Change-Id: I1134aa7662912b15726265127fb6f1f05a5388f1
CRs-Fixed: 748771