Forward port Templates functionality

Change-Id: Ieb9e54249dd512e65f23f32d503d11fba88335ee

Conflicts:
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Bring back QuickMessage, Unicode stripping, TimeStamps and Add to Calendar

Change-Id: I103195f61b13a83573e7bf8f8a1bf08cb8aacc94

Conflicts:
	src/com/android/mms/ui/MessagingPreferenceActivity.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
Mms: Remove text/plain for ACTION_SEND

Always display registered apps for android.intent.action.SEND action, but this is not true.
Actually, it doesn't support that mime/type. Just remove it to avoid unexpected behaviour for
external apps.

See ComposeMessageActivity#addAttachment

Change-Id: I4815a59533dbfc3decfbdbc57bf456ebda3cab7a
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
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
Bring back Blacklist support

Change-Id: I85fc96a6e00373e94d8648b8aaa8cf19551f39a7

Conflicts:
	src/com/android/mms/transaction/SmsReceiverService.java
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Allow Mms app to run on non-Blacklist enabled devices

Change-Id: I4fdee513bd6fc5ce04f7a14678c2ce5ce984bede
Mms: Bring back layout color abstraction

Change-Id: Id1845ddad8a38a6f2ece7c9531927cb8fc1ab189
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
Breathing SMS Notification

This will give your SMS notifications a breathing effect in the statusbar instead of being a static icon.

Icon Credits: @Kroz

Change-Id: I67614713fbeec8ac77e933f29b8ee6e1a5f46162

Conflicts:
	res/values/strings.xml
	res/xml/preferences.xml
	src/com/android/mms/ui/MessagingPreferenceActivity.java

Conflicts:
	res/values/strings.xml

Conflicts:

	res/xml/preferences.xml

Conflicts:
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Fix derp

Add the extra }
Mms: Port custom notification vibrations

Change-Id: I24ec97e3a33aaf0cbfd025b7b29dd0e0fb22343a
Don't recycle messages by default.

* Don't delete old messages by default.
* If any of the conversation threads have more messages than
  the storage limit settings, an activity is shown that will
  tell the user how to turn on the storage limits.
* This changes the behavior introduced in commit
  f766f33b774cfb6dd4100a6522ffa23c0a0dae35

Change-Id: I7e20ec73fbe42e19397cda2663de7434557f0e51
Add font size to Message threads

Change-Id: I71d8a1476d39fb8a7e1de3a3db8c5ed5be0d7d65
QuickMessagePopup: pager fix on multiple messages.

Fixed the pager to
* keep the already typed replies for each message, and
* retain the typing focus on the current message reply's EditText.

Change-Id: I48bc7e5c597dd31ae13a6ce81f33f870f9ec2be8
mms: Add CHANGE_PHONE_BLACKLIST permission

Fixes permission denial and subsequent FC when adding a contact to
blacklist from an SMS thread.

Change-Id: I3b33602684077d11f8d6473c538dc919c771127b
Mms: Prevent popup window from closing

Popup window will close if pressed outside of it.

This commit disables touches outside the popup.

10x Revertron

Change-Id: Ife491d8b58d1b32d59760eb10a6e10cb67969974
mms: update theme to material

Change-Id: Ib4c2b03d96fbd4df798c18f0ad0a309ac2aa8c6c

Conflicts:
	AndroidManifest.xml
	res/layout/mailbox_list_screen.xml
	res/menu/conversation_list_menu.xml
	res/values/colors.xml
	res/values/dimens.xml
	src/com/android/mms/ui/ConversationList.java
	src/com/android/mms/ui/MailboxMode/MailBoxMessageList.java
	src/com/android/mms/ui/MailboxMode/SearchActivityExtend.java