avoid IllegalStateException in MessagingNotification

If columnIndex is -1, c.getLong(columnIndex) makes IllegalStatementException.
So, the columnIndex should be checked -1 or not before using.

Change-Id: Id0dfffa5159d22dc67d56003b999dce80378736e
Mms: Update template activity to Google UI guidelines

Replace floating context menu by contextual action mode.
See http://developer.android.com/guide/topics/ui/menus.html#context-menu

Patch Set 1:    * initial commit

Patch Set 2:    * add forgotten files

Patch Set 3:    * fix some styling issues
                * use correct copyright
                * remove res/menu/templates_list_context_menu.xml

Patch Set 4:    * rebased

Patch Set 5:    * some code cleanup

Patch Set 6:    * move strings to cm_strings.xml

Change-Id: I80bed09427e208ab180b0e7cb3aa1a070507621c

Conflicts:
	res/values/cm_strings.xml
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
Catch OutOfMemoryError for getBitmap.

Change-Id: I85bf682cc98de0f075b4d8d6ec621d56ae559adb
Signed-off-by: Bin Li <libin@marvell.com>
Send mms read report if it is required.

Change-Id: I35be42545f000c51ebe71444ab591c42b33160cc
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 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>
Mms: Show menu option to delete all messages

Delete all messages option is not visible in "Manage SIM card messages"
so unable to delete all SIM card messages at a time.
Use invalidate menu options to show "Delete all messages" option.

Change-Id: I77645f51bffe2ca9718f81483e93e3bf925f293a
Enhance performance by using ViewHolder

Change-Id: I8199b84b6822944383a79ab8ad3eb227f5e31508
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
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
Fix jank while Mms were downloading manually

The download button will be janked while several Mms
were downloading manually in a batch since message
list view will bind view before download state of Mms
were set in retrieve transaction.

Change-Id: Ibf9fbeee17150e2d7c3eba00ba34b56406ef96b5
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>