We sometimes need a new thread id to update drafts

We are saving the draft in a conversation which had been
deleted all messages one by one(Now the thread id is orphaned).
The draft will be saved in a obseleted thread, so we lose them
and cann't find them in ConversationList. We need to get a new
thread id in this case.

Refer to ef3eb49cde359d36f9536dbaffe5c16f3639c1f2, it fixed this
issue while we are saving the Mms draft, but Sms.

Change-Id: I29b3c1abf373877924b1afb45027417a12a1ec68
Signed-off-by: Roger Chen <cxr514033970@gmail.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
Mms: JAVACRASH in com.android.mms at android.os.AsyncTask$3.done

TestCase:
    1>"%1$" displays when Restore to default in SMS settings
    2> Fore close when there is no app that start activity
    3> manage sim messages
    4> Force close happened when open a MMS with vcard
    5>  Audio is inserted to MMS, and then user play it. If long pressing
    progress bar of the audio playback until play finished, messaging will crash

Change-Id: I04eec747029fe4d6d73e290dfa682c949a5930a8
Author: b497 <b497@borqs.com>
Signed-off-by: Fang, JiuX <jiux.fang@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: 25327
Mms: Fix the logging of the TransactionBundle

The byte array returned by the getPushData() function should be
properly converted before beeing logged.

Change-Id: If24a20bc636282bdab5631935f1bcc6eafc20d90
Author: Frederic Predon <frederic.predon@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: 28037
Merge "We sometimes need a new thread id to update drafts"
Merge "Mms: JAVACRASH in com.android.mms at android.os.AsyncTask$3.done"
Merge "Mms: Fix the logging of the TransactionBundle"
Merge "Mms: Two popups are displayed when Press Enter key on message screen."
Only delete the cache files if cache is null

No need to call getImageCacheService() to get the instance to delete
image cache files if the cache instance is null.
It will renew an instance for cache and lead to the memory leak
if renew too many instances by calling getImageCacheService()
multi-times.

Change-Id: I3ff83f49e9e8a8bc211dc26c773f3ccefc974881
Signed-off-by: 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>
Merge "Only delete the cache files if cache is null"
Merge "Fix 2 bugs in Mms AppWidget"
Mms: Add Chinese translations

1. Update the quick message translation base on Andrew Jiang's suggestion.
2. Add translation for emoji.
3. Add translation for quick reply.

Patch Set 2: Added translations for insert emojis (Again),
dark theme for QuickMessage, translation improvements,
and fixed description.

Change-Id: I5999f2038b356dca46b5a6d4686e3747c8139cd5
PT-BR: MAP Desc. Translation

Change-Id: Ic2b0fbefee4a0aeb5c091ef21ca0cfde97bc2e4b
Mms: Updated italian translation

	Added "Ported Bluetooth MAP from CM9" strings

Change-Id: Icf12120c4da01e6aefbf7d105e9b8c2001945768
Added hungarian translation for push mms

Change-Id: Ib09e7a60e1144e1deac57a6b5e5d35f29542087d
Update Russian Translation-Mms-CM10
Merge "Added hungarian translation for push mms" into jellybean
Merge "Mms: Updated italian translation" into jellybean
Merge "Update Russian Translation-Mms-CM10" into jellybean