Fix SIM card fulll on sub2,shows SMS in sub1 when open through notification bar.

It did not  pass the subscription info when show SMS in SIM card
from notification bar.

Pass subscription info to the intent when create the notification.

Change-Id: Ia0194ad87e223299dcb31812e1aa82d18c286736
CRs-Fixed: 727861
Mms: Not popping up while address field entered with special characters

The feature of checking invalid character is controlled by
config_filter_char_address, and its default value is false.

Change config_filter_char_address default value to be true.

CRs-Fixed: 708867

Change-Id: I67cb6b1779d6c09419138ebde5c6e5f813c80821
Mms: Fix Received message still stored in Phone after expired.

FR "Mms: Set Mms validity duration" lost
the checking for MMS validity period.

Supplement the function of dialog prompt.

Change-Id: I3193fdad0403bbeeb0cdf294eff453f0b300b85e
CRs-Fixed: 728611
Mms: Fix no slot indicators on send button with two SIM card

The icon resources in framework layer were placed to another fold,
and the access method has been changed. So the original function
does not work.

Change the implementations of getMultiSimIcon() to fit framework
layer changes.

CRs-Fixed: 729149

Change-Id: I1bc63b82871f4bb00653a1154bebbebb52d248f6
Mms: Fix MMS crashed when check message detail of SMS

MailBoxMessageContent only support URI. There are some errors in
mailBoxMessageContent because of merging feature.

To fix it, using URI data type to start MailBoxMessageContent, and
solve some errors of resolving conflicts.

Change-Id: I1dae61d18157e9a2399f9b5f4e4cc55c8dcc1bfd
CRs-Fixed: 728549
Mms: Reginal requirement for Mms

custome Mms retry times storage and delivery reports

Change-Id: I96d4aa873518b6bad4ab72e2cce83d76dc4aff6d
(cherry picked from commit 6e7fc747a54cf7f0c962426fbc7edae307ca287c)
(cherry picked from commit a33313120d1dc3ef23d6c6c9a906dbebc4d20aa2)
(cherry picked from commit e667910d45d006dd5621c9f22d7c54e25ff7b36f)
Mms: Support manual play MMS slideshow

Click play button will start the auto play mode as default.

Enable manual play MMS slideshow mode as default, disable menu key when
previewing a slideshow in SlideshowActivity.

CRs-Fixed: 729396

Change-Id: If33e5eb87d007f0196c2edcf6c277a3afd0a1728
Mms: Fix Add contacts icon display when add subject after send sms.

Adding contacts icon don't be hided in reset message after send sms.

Hide adding contacts icon if it is showing.

CRs-Fixed: 729974

Change-Id: I893312246eb472b75578d9cd715d38ae36cf15a7
Mms: Unify SIM card names in message setting

There are multiple SIM card names in message setting, SIM, SUB
and SLOT, unify to "SIM" for all dual SIM names.

Change-Id: Ifb0d7626053b06ec0fa9a8bb4b39111c4012778c
Mms: Fix return home screen after select SIM1/SIM2 in folder mode

MailBoxMessageList startAsyncQuery() fuction use sub_id to query,
but in database sub_id changed to phone_id.

Use phone_id insteadof sub_id to query.

CRs-Fixed: 730768

Change-Id: I37e1f9978c8553b655a0e8d9634f1f040a1606f5
Mms: Fix wrong message on notification bar for MT SMS

It will show unexpected number on notification bar when receiving
new MT SMS.
Display the wrong text, show message instead of message ID.

Change-Id: I41cc3f2ea48b3b48e2e6631a3f8c69a810676f6f
CRs-Fixed: 732902
MMS: Fix Invalid recipient draft is still on after discard it

Due to recipients have not yet become span before back to home screen,
recipients watcher will be called when launch message second time. The
"thread id" is changed to "0" by syncing working recipients, which lead
to discard draft failed.

Change adding recipients watcher to the position that have loaded
recipients from draft.

CRs-Fixed: 708163

Change-Id: I43e8681c693bed9f7cba5bba9ca30eb956cc96a4
Mms: Fix SMS still store on Phone after select "Card1 preferred storage"

The store location is error due to use sub id when save SMS.

Change sub id to phone id.

CRs-Fixed: 733472

Change-Id: I2c4cef3faea69a797b016fbad97265261ab3d220
Mms: Fix crash when add huge video as MMS attachment

When add >2GB video as attachment, the increase size will be
judged as negative number becauseof the size exceed unsigned
interger upper limit. The checkMessageSize() function will
throw a ContentRestrictionException that cause the APP crash.

Catch the ContentRestrictionException when add video as attachment,
and give user a tips.

CRs-Fixed: 708144

Change-Id: Ia872335b4c0158c47db7b355d7cabdfcdc4d878f
Mms: Fix crash when copy WAP push message to C+G mode SIM1(CDMA)

WAP push message address has been modified, cause exception when
parse the address by CdmaSmsAddress.parse().

Pass the original number as destinationAddress to getDeliveryPdu().

Change-Id: I46ccaa6e85206f87d36a53e007c811075102673f
Mms: Reginal requirement for RTL

Add support for RTL layout direction.
Convert left/right layout properties to start/end properties.
Fix RTL bugs for ConversationListItem, SlideEditorActivity, etc.

Change-Id: I59acaf9311877cbf01fe1718e378e6b200c336b0
Mms: Fix can't save the URL link in WAP push message

Pop up wrong dialog when click URL link in WAP push message.

Use MessageUtils.onMessageContentClick() to deal with URL
link click event.

CRs-Fixed: 733005

Change-Id: I591aed5a67063e89e9fd34b9f2b0bf883c129565
Mms: Fix can 't display new SMS in Inbox.

When enter the Mms folder mode from the home activity again,
Mms database query is not triggered in MailBoxMessageList.onResume()
function, and can not display the latest the SMS/MMS.

Move the Mms database query from onCreat() to onResume() in
MailBoxMessageList activity.

CRs-Fixed: 737020

Change-Id: I9aa846a1e025fd411221e8427dc09059ec48c1da
Mms: Fix crash when lock/unlock more multi SMS

Thread will not be deleted immediately when finish its work.
So getWorkThread() will return last mWorkThread, then call
startWork() will cause IllegalThreadStateException.

Return a new thread when call getWorkThread().

CRs-Fixed: 737803

Change-Id: I9570b71df9757edd1c59db6efac6edf4d0377a86
Mms: Fix change to conversation mode when exit messaging at folder mode.

Don't save the state that is conversation mode or folder mode.

Save the mode state when change.

CRs-Fixed: 738612

Change-Id: I6192784f306abba7bdc702d63ddac6776a717671