Prevent removal of Text (SMS) Messages category

- With certain configuration params, the category would be removed, hiding the SMS split / counter options

Change-Id: Id6f8a9b672f6a15919e40d03a67ad797551b4134
Added "Support for emojis" on the MMS app

Support for the Unicode subset dedicated for emojis, as used on the iPhone, or even the Gmail website.

The full list with Unicode codes is available here: http://barrow.io/posts/iphone-emoji/.
The pictures used here are not bound to any licenses, even GitHub is using them (https://github.com/blog/816-emoji).

The size of the icons seems OK to me, but I could only test on an HDPI device (Galaxy S II i9100). MDPI icons are also included, but I couldn't really test it.

A new checkbox preference has been added to be able to toggle the feature.
The feature will be disabled if the "Strip Unicode" feature is enabled (obviously).

PS1: Initial commit
PS2: pngcrush on all the pictures + XHDPI emojis
PS3-7: Fixed indentation and removed useless whitespaces

Change-Id: I8a457498fb655ea3f1bb273d7756f7c224b81466
Mms / Emoji support: Fix for Unicode 6.1 emojis, Preference toggle fix, and Better dialog for insertion

My previous patch used the Softbank private unicode code page to encode and decode emojis.
PROBLEM: This was the technique used by iOS before version 5 and all the Japanese carriers.

Google and Apple have proposed a new code page which has been integrated into Unicode 6.0, then updated in 6.1
The full specification can be found here: http://www.unicode.org/~scherer/emoji4unicode/snapshot/full.html

SOLUTION: This patch changes the way emojis are encoded and adds a new decoding table, but keep both for compatibility.

Surrogate pairs are used, because of the way Java handles UTF-16 chars - these cannot be included in the XML resource file.

I also changed the strings to respect UI guidelines, and extended the dialog so users can add more than one emoji.

PS1: Initial patch
PS2/3/4: Fixed typos in the Softbank codes
PS5: Fix the 'Emoji support' setting toggle which used to disable only Emoji encoding, but not decoding
PS6/7: XML layout for the 'Insert emojis' dialog

Change-Id: I9eb5081eb7514cb2b89ed3b91cc3054347d6ac90
Mms: Fix ic_dialog_alert usage

The code wasn't updated for ICS everywhere so it points to
old upscaled Gingerbread drawables in a few places.

Change-Id: I5038036fcfb2ede783eae03bf99da8b57194202c
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>
Fix a StaleDataException issue when pressed MENU in busy

Need to check the state before got the count of mCursor,
since it will be closed in refeshing the list.

Change-Id: Ib636fd8802ced47c6b30fa4cb6fde8173386dd7b
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Mms: Invalidate the contacts cache if contacts DB is modified.

Invalidate the contacts cache if contacts DB is modified,
instead of invalidating on each and every launch.
Which improves first scroll FPS after (subsequent)launch.

Change-Id: I67e4f209ab6c331a21aaf8fe6533891aa9fbaea1
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>
Fix a BadTokenException when user wakeuped device

SlideshowActivity will be destoryed if user pressed POWER
to sleep the device, since it was set to noHistory=true in
AndroidManifest.xml. So it will make SlideView throw a
BadTokenException when user wakeup and then scroll the
SlideView.

Change-Id: Ib67e7547aa47f7c7c6bb469c07482f24db34668d
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Mms: Fix contact lookup for email addresses

Change-Id: I0ea64f087a8cfe601ce153561b82a889383e356a
Mms: Fix delete template warning message

Change delete template warning message for be consistent with the alert buttons

Patch2: Change "template_not_present_error" message to fit android design guidelines.
Patch3: Typo

Change-Id: I1d1272e8aa22f6863efd9a286bfb8cb1dee2ec55
Fix for wrong selection of sms template

This patch fix a wrong selection of the sms template when the user performs two different gestures

Change-Id: I4e9d15fc779f6a270421f78c4aed3cd90c0cd01d
Signed-off-by: Riccardo Ciovati <rciovati@gmail.com>
Display contact name if available in delivery report notifications.

Change-Id: Icf6e2164c17196b033233db271499e5fb0d8d09b