Don't show call icon if device don't support voice calling

Some tablets don't support voice calling, but they supprot
sms service, on these devices the call icon should be
hidden.

Change-Id: I337f8af4dbb3bdee8abcf162691494c9d8c7113b
Signed-off-by: Rui Wang <ruix.wang@intel.com>
Mms: SIM Sms not refreshed after sim Hot swap

This patch adds a broadcast receiver for SIM ABSENT and
clears the internal variables resulting refresh of SIM SMS
data settings item.

The New SIM SMS will be loaded when the user re-enters the
view.

Change-Id: I1874651449f650ed3526c00b2983768227f0ecbc
Signed-off-by: Rui Wang <ruix.wang@intel.com>
Signed-off-by: Arun Ravindran <arun.ravindran@intel.com>
MMS: JAVACRASH happened on after user delete the thread

The root cause is the onQueryComplete function is called
after the ConversationList activity is finished.
The same error can be founded in the ComposeMessageActivity
Add two modification to fix this bug.
1) remove the query request in the onstop activity;
2) check the value of isFinishing in the onQueryComplete
   function

Change-Id: I0e2c3907e102894ea77edf90c6b96fb69e4db582
Signed-off-by: Rui Wang <ruix.wang@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Add a type check to get the right message.

The messages are divided into two classes: mms and sms.
Maybe one mms and sms have the same id. Add a type check
in getCursorForItem function to get the right message.

Change-Id: I48cbc9e437b1c33788efceff49acc679151dcb63
Signed-off-by: Rui Wang <ruix.wang@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Merge "Don't show call icon if device don't support voice calling"
Merge "Add a type check to get the right message."
Merge "MMS: JAVACRASH happened on after user delete the thread"
Merge "Mms: SIM Sms not refreshed after sim Hot swap"
auto-merger: merge in from aosp/master

Conflicts:
	src/com/android/mms/ui/MessageListAdapter.java
	src/com/android/mms/ui/MessagingPreferenceActivity.java