Mms auto-retrieval (3/3): mms app

Change-Id: I32b6d46aa43d3cb96125d8a8264f3fc9e6d3f18c

It's only porting this http://review.cyanogenmod.org/#/c/26167/
Part 3 of 3

Conflicts:

	src/com/android/mms/ui/MessagingPreferenceActivity.java
Messaging: Fix the order of the Mark read action

Change-Id: I7ba5a08f67de57c8b9be2b037c474d517bcc2c4f
Re-implement SMS/MMS Mark all as Read option.

Change-Id: I199207441dc37393d733e3af443730367d352f2e
Add font size to Message threads

Change-Id: I71d8a1476d39fb8a7e1de3a3db8c5ed5be0d7d65

Conflicts:

	res/values/arrays.xml
	res/xml/preferences.xml
	src/com/android/mms/ui/MessagingPreferenceActivity.java

Conflicts:
	res/values/arrays.xml
Add attachment save location preference

Change-Id: I300368fdd7c3420b11d4d105fc245b2342cd33dd

Conflicts:
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Mms: Pre-view pops up twice after tapping preview button

The flag of the intent needs to be set to single top.

Change-Id: Ibc0fe202bd500054454b28e7caef915ec41e3bc5
Author: Jianli Zhang <jianli.zhang@borqs.com>
Signed-off-by: Jianli Zhang <jianli.zhang@borqs.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by:Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 8583
Use appropriate notify method instead

Use notifyAppWidgetViewDataChanged(int[] appWidgetIds, int viewId)
instead of invoking notifyAppWidgetViewDataChanged(int appWidgetId,
int viewId) in the loop

Change-Id: Ic227640e720cc35a652c0a89d39f633bab338cc7
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Send next message if current one fails

If there is an exception during sending current
message, it will not try to send next pending one.

How to reproduce:
1) Send a sms to 2 recipents. First one is a
   invalid address, for example "invalid", and
   the second one is a valid address;
2) Message to the first address fails;
3) It will not send the message to the second
   address.

Change-Id: I9442711118a64d0d4b9b08a04cf717c97428bf46
Signed-off-by: Bin Li <libin@marvell.com>
Continue to transact pending Mms once after boot completed

Change-Id: Id0cc24fdd1eaf985681c12c34303e854a8d83ce2
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Fix FC when attempting to attach sound without SoundRecorder.apk

Gracefully displays a toast message informing you that SoundRecorder.apk is missing.  This fixes Bug #139: https://apple.slimroms.net/redmine/issues/139

Change-Id: I8efe4189cb8f273bafc735ce7df611fe2d8c789c
Fix NullPointerException in RecipientsEditor.

In function PointToPosition, should check if mLayout
is NULL before call function getExtendedPaddingTop
because mLayout is refered in getExtendedPaddingTop.

Change-Id: I750313c3a4bceb7213433cf3d110ea9e87cee0b8
Signed-off-by: Bin Li <libin@marvell.com>
Catch OutOfMemoryError for getBitmap.

Change-Id: I85bf682cc98de0f075b4d8d6ec621d56ae559adb
Signed-off-by: Bin Li <libin@marvell.com>
Enhance Mms connectivity tracker workflow

1. Fix Bug 1691499 by a more appoperiate broadcast
and revert 82f5492b211f51e71c7089eb7779384ff03c0d89.
Broadcast CONNECTIVITY_ACTION is more low-frequencyer
and aproprater than ACTION_ANY_DATA_CONNECTION_STATE_CHANGED.
Root cause of Bug# 1691499 is receiving a high-frequencyer
broatcast and not adding a apropriate filter.

2. Reduce useless duration between hanging up and processing Mmes.
Check mms connectivity is available before retried to connect.

3. Using getNetworkInfo instead of the deprecated one
4. Remove useless codes and make ConnectivityBroadcastReceiver
more readable.

Change-Id: I994d3cccead1e43865c42a24e20021321e140686
Signed-off-by: Roger Chen <cxr514033970@gmail.com>

Conflicts:

	src/com/android/mms/transaction/MmsSystemEventReceiver.java
	src/com/android/mms/transaction/TransactionService.java
Add Signature to messages

This adds a custom signature option to Mms app,
which appends a custom string set in settings
to all messages send.

PS2 : Fix Test Derp

Credits: DroidJunk

Change-Id: I2b3572e47a183c18c70bf8ef4960d60695ac3c4b

Conflicts:

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

Conflicts:
	src/com/android/mms/ui/MessagingPreferenceActivity.java
Sign Quick Replies

Apply Signature text to Quick Replies also.

Change-Id: I377d242791cd511f5c93a77f54f1145266d1732c
Mms: Updated 'Mark as read' notification action icon

Users still think the 'Read' action means 'to read' (sounds like reed)
rather than 'the message has been read' (sounds like red).  This new
icon is an attempt to clear up the confusion and replaces the email
looking icon currenty in use by something a bit more suitable for the
Mms app.

Drawable curtesy of Björn Lundén

Screenshot:
  https://dl.dropbox.com/u/50993944/Screenshot_2013-04-08-18-16-03.png

Change-Id: I890a99c76173dfcb1179fea8ef80d24ecf5133ac

Conflicts:

	src/com/android/mms/transaction/MessagingNotification.java
undeededs?
Mms: Add "Insert contact info" back

Bring back the ability to insert contact info (Phone numbers, Email addresses,
Events, Postal address and Website), in a SMS or a MMS, as a text.

Compared to gingerbread/CM7: - several info can be inserted thanks to checkboxes
                             - no more adapter (not really needed)
                             - Event info added
                             - feature is under Menu, not Add attachment

    * Patch Set 1: initial commit
    * Patch Set 2: corrections, better strings, util/DateFormat.java added
    * Patch Set 3: Cleanup
    * Patch Set 4: Change information to info in title

Change-Id: Ida4a9d52d83a909f55e54d272849fe16c6781681

Conflicts:

	res/values/strings.xml

Conflicts:

	res/values/strings.xml

Conflicts:

	res/values/strings.xml
	src/com/android/mms/ui/ComposeMessageActivity.java
wtf am i doing lol