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
Mms: Fix wrong message selection in context menu

Sometimes when the user open a message's context menu for the
first time, the action will be performed on the incorrect message
(i.e. deleting the wrong message). This is because the menu click
listener relies on the fact that that the cursor points to the
current message, which is not always true because bindView can
be called on other messages causing the cursor to move.

Fix: Cache the position of the message and move the cursor back.

Change-Id: I4e8fdd2956987fc3f12c80def46c107a4089d0ae
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>
Mms: Fix ic_dialog_alert usage

The code wasn't updated for ICS everywhere so it points to
old upscaled Gingerbread drawables in a few places.

Change-Id: I5038036fcfb2ede783eae03bf99da8b57194202c
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>
Fix a StaleDataException issue when pressed MENU in busy

Need to check the state before got the count of mCursor,
since it will be closed in refeshing the list.

Change-Id: Ib636fd8802ced47c6b30fa4cb6fde8173386dd7b
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Mms: Invalidate the contacts cache if contacts DB is modified.

Invalidate the contacts cache if contacts DB is modified,
instead of invalidating on each and every launch.
Which improves first scroll FPS after (subsequent)launch.

Change-Id: I67e4f209ab6c331a21aaf8fe6533891aa9fbaea1
Make the liftcycle of cursor under the Activity

The cursors of ComposeCardActivity and ConversationList
were never be closed. So the database will throw an
CursorWindowAllocationException if the cursors which not
be closed are too many to be allocated then the database
will return a NULL cursor back to onQueryComplete().
After that Mms will be crashed by the NullPointerException.

Change-Id: Ib8730b326edf9177bbcce48a42b85405acff51ba
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Fix a BadTokenException when user wakeuped device

SlideshowActivity will be destoryed if user pressed POWER
to sleep the device, since it was set to noHistory=true in
AndroidManifest.xml. So it will make SlideView throw a
BadTokenException when user wakeup and then scroll the
SlideView.

Change-Id: Ib67e7547aa47f7c7c6bb469c07482f24db34668d
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Fix leaked window issue while showing DiscardDraftConfirmDialog.
packages/apps/Mms: Fix to solve cannot resume audio playback issue

When the end user press 'SEND' key during audio playback in MMS apps.
The slideshow activity becomes invisible and invokes onStop() method.
Currently onStop() method ends the active media elements irrespective
of the player state.This fix will pause the active media elements,
If the player is in play/pause state.

Change-Id: Idcadd4ece1b2cbd022083982d1cad3f65f247bf1
CRs-Fixed: 235563