Forward port Templates functionality

Change-Id: Ieb9e54249dd512e65f23f32d503d11fba88335ee
Bring back QuickMessage, Unicode stripping, TimeStamps and Add to Calendar

Change-Id: I103195f61b13a83573e7bf8f8a1bf08cb8aacc94

Conflicts:
	src/com/android/mms/ui/ComposeMessageActivity.java
Bring back Split SMS

Change-Id: I8b1ee608a1ca3989462f9a12bad19201309ec16b
Port "Fix cropping on MMS inline thumbnails"

The following patch fixes the cropping that was broken in jellybean. This worked
properly in Ice Cream Sandwich and CM9. It now behaves correctly with this
patch. Here are before and after pictures of both a regular photo and a
panorama.

Photo:
before
http://img62.imageshack.us/img62/3783/beforee.png

after
http://img24.imageshack.us/img24/231/afterwd.png

Panorama:
before
http://img194.imageshack.us/img194/3882/panobefore.png

after
http://img607.imageshack.us/img607/962/panoafter.png

Change-Id: Ie37d09bf46eca4efb7dc0be02dbd971648abd4ca
Fix SMS sending.

ACTION_SEND_MESSAGE must be routed through the privileged receiver now,
otherwise it'll be dropped in SmsReceiver.

Change-Id: Ifbe6e222d16053c038ca79a98e6bc837090ea3a3
Fix up receiver declaration.

The intent this receiver listens to is used by the BT MAP implementation
to send out SMS it queued. As the manifest and the
SmsReceiverService.java were in disagreement about the action name, this
didn't work.
Also secure the receiver in the process, it can be used to send out SMS
without having the SEND_SMS permission otherwise.

Change-Id: Ia8d181731baea586865ce3f18fe0864636c2b6f4
Fix AAPT warnings

Change-Id: Id791b867bdd0cb07681fa626274480c6316ed061
Mms: Add the ability to select recipients from a checkbox list
When creating a new message you have to write some letters from the
contacts you want to add and select them by clicking on it.

This can be annoying if you want to send your message to several contacts.
With this change you can manually select numbers from contacts and groups
from a checkbox list.

Change-Id: I03681f22a0d949679e2a9cc95c551e4c216b6300

Conflicts:
	res/values/cm_strings.xml
Mms: Bring back layout color abstraction

Change-Id: Id1845ddad8a38a6f2ece7c9531927cb8fc1ab189
Mms: Bring back Translations

Change-Id: Iec5a20a16aef14bdd0042575693e018db6e669ca
MMS: CA translations

Change-Id: I4d801a31cde541c8750ab2b55dc5fcee384f125f
ClassZeroActivity: Holo it

Change-Id: I098866d61145863c561c3bdc3f25d38254906f1d

Conflicts:
	src/com/android/mms/ui/ClassZeroActivity.java
ClassZeroActivity: Queue messages instead of displaying them all at once

10 out of 9 doctors recommend not piling up infinite top activities

Change-Id: Id7a2faa6997036507acad38f43fe17bf1f6a42cd

Conflicts:
	AndroidManifest.xml
	src/com/android/mms/ui/ClassZeroActivity.java
Fix inconsistent back button behavior

By default, a press of the back button will only take effect when the
button is successfully released (the user releases the button while
still focused on it), not when the button is still triggered and pressed
down. To avoid this inconsistent behavior, execute the custom back
logic in the onBackPressed callback instead of onKeyDown.

Change-Id: Id516bc523b625a7ca42ea3ff580892cdf28f770f
ClassZeroActivity: Resolve some possible NPEs, and refactor common code

Match up to the final version merged upstream

Change-Id: I215188f5ea508b3c0b69189c1bf6ccc7601eed7b
Android denial of service attack using class 0 SMS messages

Bug 9702645
Bug 11970403 - Change to ClassZeroActivity to singleTask

Cherry pick the change from master.

Making every AlertDialog immediately visible can lead to exhaustion
of graphics-related resources, typically memory, resulting in a
broken bufferqueue/hw renderer, and subsequent system crash.

Make ClassZeroActivity a singleTask activity, and queue incoming
messages if one is already being displayed.

Change-Id: I0aef7b857364acc404e79581ba5e503571065483

Conflicts:
	AndroidManifest.xml
	src/com/android/mms/ui/ClassZeroActivity.java
Mms: fix quick message layout on 320dp

match_parent no longer works properly on 4.4 for some reason, so
we hardcode it to 300dp.

Also cleaned up how 360dp devices are handled to avoid duplicating
layout.

Before: http://imgur.com/UKo4aUL
After: http://i.imgur.com/Eu6WMnm

Change-Id: I722e97ada7a434315d0c603c6eede3e8ed16b1e4
Mms: Option to delay SMS Sending

Add feature to delay SMS sending, user being able to cancel
SMS sending by touching the SMS, until set duration is elapsed.

Follow-up of http://review.cyanogenmod.org/#/c/36178/
    (and http://review.cyanogenmod.org/#/c/35231/) on cm-10.2 branch

Change-Id: I09dd045bde30c19c7552ee57d55a4a9434e98712

Conflicts:
	res/values/cm_strings.xml
	src/com/android/mms/transaction/SmsReceiverService.java
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Mms : translations (squashed commit from CM)

Mms: PT-BR Translations

Change-Id: If126d4f6536d99d3006b3b8cb26ac20ed89cc37e

Mms: IT translations

Change-Id: I12466ae82c343286f3d8bd1770e8539abf6f624b

Mms: Remove aapt warnings in DE

Change-Id: I7dca3f00d233a62f8b423d5316e30791123aa5c8

Mms : translations (squashed commit)

Mms: Update DE translation

Change-Id: I00b9794737e5e194c135f9c6a881b11a34c16ab3

Mms : TH Translation

Patchset2 : Fix wrong xliff
Patchset3 : Fix more wrong xliff

Change-Id: I69b5bd622cc67c1d5989016e9f2705d641de984f

Mms: RU translation

Change-Id: If7d03351cc8cf350818b22ff73c76c7b50583336

Mms: PT-BR Translations

Change-Id: I08c8e4cab3f1c805ef5ead7f1bc28c68ab272878

Mms: LT translations

Change-Id: Idc978a66c367465a280e21de09ef6557d9e06cee

Mms: Clean up delivery report dialog.

Instead of launching another activity just to show the delivery report,
mimic how showMessageDetails works instead, using AlertDialog.Builder.
This ports the dialog over to Holo as well.

Signed-off-by: angelsl <hidingfromhidden@gmail.com>
Change-Id: Ia7ee549fe7ed9770a70482a042ebbc4bc12bab21

Mms: ES translations

- Delete unused translations

Change-Id: I8f695141bc28d819f454c9b64b716661e9b67661

Mms: NL translations

Change-Id: I3d0a86aff109ee0444f102eceed6c448c8148d99

Mms: PL translations

Update translation

PS2: Delete whitespaces/tabs

PS3: Redesign cm_strings.xml (it looks like default one), add missing strings, add fixes (thanks Tomasz)

PS4: Fixing (thanks Piotr)

PS5: Moar fixes (thanks Piotr, Mateusz and init0)

Change-Id: I79a282a15b1a87221ac042e9f20ddc8fb2c2cd0e
Signed-off-by: jereksel <jereksel@gmail.com>

Mms: add Simplified Chinese translations

Change-Id: I5b3d7e1ce7a775dc06d660a04082ea012fe63809

Mms: update resources

Change-Id: I9474491561760f5fd7a4f6b2e054aaca4d668506

Mms: IT translations

Change-Id: I45b2ea0266bc11de5e918b20b399c68d332b3f9d
move custom resource file to *_custom.xml format

Signed-off-by: Arnav Gupta <championswimmer@aokp.co>