Contacts: will pop up "Unfortunately, contact has stopped.".

In ContactEditorActivity, when long press name information in
AddLocalGroupDialog, SoftInput board and action bar were shown.
The rotation of screen caused ContactEditorActivity to recreate
and dismiss AddLocalGroupDialog. Then SoftInput board and action
bar lost their dependent view.
At last, the crash happend.

Through adding 'android:configChanges="orientation|screenSize
|keyboardHidden|locale"' into AndroidManifest.xml to avoid the
recreate-operation of ContactEditorActivity.

CRs-Fixed: 526660

Change-Id: I493133246a93b5cc5e239df6e01f51f032bf7aba
Contact: Phone crash when save a contact after switch the account

The state of the account switcher is incorrect after end a MT call,
the contact has been saved and the action is "EDIT" after end a MT
call, so user should can't switch account now.

Add a judgment to update the value of the variable that indicates
whether there is a new contact, the program will disable the account
switcher according to this value.

CRs-Fixed: 528413

Change-Id: Iaf3dbddc4803f7120c1a7613e42997cb72684387
Contact: Phone crash when turn on airplane mode

It needn't destory loader When filter the SIM card contact.

Override the interface that implement destory loader in contact
picker fragment.

CRs-Fixed: 509580

Change-Id: Ib90ef8536818a4ee56dbecf33e565fc7d929f929
Contacts: Contacts crash when tap "Tag" again

If set ellipsis at middle of text, Array index out Of bounds
exception will happen when calculate ellipsis.

Set ellipsis at end of the text.

CRs-Fixed: 541823

Change-Id: I4daba4fb7c74b827010227ab9a1501416b6307b9
Contacts: Context menu display incompletely

It isn't dismiss the Popup when rotate screen, and the position
of the Popup in landscape mode is wrong, so it will display
incompletely.

Dismiss the Popup when rotate screen.

CRs-Fixed: 539462

Change-Id: Ia103f63cd1edfbf9510532a4b6c1b6830b324946
Contacts: The message will disappear after switching to landscape

The height of the ScrollView be set to 0 Pixel after switching to
landscape in the layout xml.

Set the height of the ScrollView.

CRs-Fixed: 539203

Change-Id: I1970d67f349ecd3c7fe58b21c08900c1bd6e9285
Contacts: Join the current contact with the selected contact

Aggregation exceptions in database are not updated completely
when the user try to join the current contact with the selected
contact.

When join the current contact with the selected contact, we should
update all the aggregation exceptions for each pair of raw contacts.

CRs-Fixed: 542577

Change-Id: If5388bc2a5c3b63b54286084e228be47e1c2bcd3
Contacts: "Add new" will disappear

It isn't update the view when delete the editor.

Update the state of the view when delete the editor.

CRs-Fixed: 537322

Change-Id: Ie773497d480f87fa323b4ac2e3fd4bc89e4eb1a7
Contacts: Fix the "Remove photo" doesn't work issue

If popup shown, it will leak when contact editor fragment bind editors.
So it need dismiss with content view remove all views.

Dismiss the popup when context view remove all views.

CRs-Fixed: 537228

Change-Id: Id7ca52f2b7dc470b3c8b6f47ec46721cb05fbf4a
Check whether mimetype is empty or not

Contacts Provider throws illegal argument Exception if
Mimetype of any data kind is empty. Contacts application does not have
any check for mimetype being empty when contacts get saved.

Check whether mimetype is empty or not before saving a contact.

Change-Id: Ibf9da0fd7f8665e571150e40109a6f3da26b8cbe
CRs-Fixed: 546239
Merge branch 'cm-10.2' into martincz