SMS templates using gestures

ICS-optimized version of the SMS templates using gestures feature.

Change-Id: Idfa1fc08b123680bb2113b7e6ee90fc53040a972

Signed-off-by: rciovati <rciovati@gmail.com>

Conflicts:

	res/values/arrays.xml
	res/values/strings.xml
	src/com/android/mms/ui/ComposeMessageActivity.java
	src/com/android/mms/ui/MessagingPreferenceActivity.java
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
Show current vibrate setting

Bug 6014134

Show the current vibrate setting in the pref's summary rather than
making the user tap on the setting in order to bring up a dialog
of the current setting.

Change-Id: Idc2408f79174704da6fbf4eec7f4d67f74812695

Conflicts:

	src/com/android/mms/ui/MessagingPreferenceActivity.java
Cusom vibrate patterns, kanged in from 855fd19a3d by Wes Garner, originally by mssmison, attempted cleanup

Change-Id: I5da9d4f075b8c273f6e84c75c2566c658bfcd897

Conflicts:

	res/values/strings.xml
	res/xml/preferences.xml
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Revert color change from Change-Id: I5da9d4f075b8c273f6e84c75c2566c658bfcd897 as we are not doing theme changes staticly

Change-Id: I34119727d61717414ae02bcf3b1b86903c111179
Mms: Add Ł and ł special case to strip unicode

Needed in Polish. (Mentioned by yaatzek on XDA.)

Change-Id: I1cec637704f4e2f1496d047ed820f1b92b2f9f5a
Mms: Add Đ and đ special case to strip unicode.
Needed in Croatian.

Change-Id: I1c8549ab6a1a93297897476e33b4801fab6be4ca
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>
Add an option to disable the transformation from SMS to MMS when the lenght of the message is > 3 sms.

It is also possible to still have this transformation but to change the number of text needed before the sms is transformed to mms

EN, FR, DE and SV translation included (thanks to Markus Hoeber for DE and Björn Lundén for SV)

Patch Set 1 : code
Patch Set 2 : Tabulation removed
Patch Set 3 : German translation added
Patch Set 4 : English strings corrected
Patch Set 5 : Swedish translation added, trailing spaces removed

Change-Id: I9d2f2eea29587c07b790c0f8055cb703bdfd2463

Conflicts:

	res/values-de/strings.xml
	res/xml/preferences.xml
Fix Mms app crash when vibrate preference has not been set.

Change-Id: I21783cd770ffa8301ed67eddb338b6cec05ab0cc
Increased max sms threshold.
Problems sending/receiving MMS, tears down MMS APN

The MMS APN incorrectly tears down when connected. This is due to an
error in the code checking if the phone is connected to a MMS APN. In
TransactionSettings the default path is used, but this causes the
selection parameter to be ignored in TelephonyProvider. The result is
that when connected to a non-MMS APN it believes it is connected to a
MMS APN. The fix is to simply remove default in the URI and construct
the WHERE clause manually.

Change-Id: I25ffc26c68a40676841e34fd56aeab08604f4920
Extended search for duplicate MMS messages during download

MMS messages sent from some test servers all have the same message ID,
which results in the message being deleted from the Inbox after a
first message has been downloaded. This is fixed by requiring that the
IDs and subjects of two messages are identical to regard them as
duplicates.

Change-Id: I02a9143296f98bbe5c5125510c4fd89d650ab4eb
Mms: Take Ellipsis also in to consideration when comparing width

For initial comparison of Message width and available text field width
Ellipsis is not taken in to consideration so Mms app is crashing
if message width is between 435 to 450.

Modify to take Ellipsis also in to consideration when ever
comparing the message width.

Change-Id: Ib837c74d31cf3017728683204444a10a11dedfba

CRs-Fixed: 341158
Not able to play attached audio file in Messaging Application

Bug 5782423
When an mms draft is deleted, the code needs to clear its draft uri
variable. Otherwise when the code goes to update a draft, it will try to
update a draft that's not there, rather than creating a new draft.

Change-Id: I92f252aaac4524d693827395becb341f06c0828f
Sent Message on fast reply has a strange number in the messaging app

Bug 5765939

The CountryCode was not getting initialized until the country actually changed.
As a result, numbers were getting formatted based on the locale's country,
instead of the actual country.

Change-Id: I2e930d379ef407ec4de6c3318c709ec424af731e
[MR1] MMS: Fix Verizon IOT 2.6.1 fail [patch3]

patch3: change local variable name for understanding

Add exception handling when MMSC send 404: file not found
for retrieving mms. Show error message and do not retry to
retrieve.
This is Verizon MMS IOT test case. They remove MMS from MMSC
before try to retrieve MMS.

Bug: 5245918

Change-Id: I2546db94b2ce2e2cdd7f1667a30b82e926d1b132
Signed-off-by:  <goodsc.lee@samsung.com>
Add Option to show Avatar when receive message
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>