1. There is a merged contact on the mobile phone.
2. Edit the merged contacts.
3. The phone screen fades slowly and then enters the editing page.
First, find the EditContactActivity. java file under the contacts source package, and then find the bindEditors () method, as shown below (there are two modifications ):
Protected void bindEditors (){
...
New Thread (new Runnable (){
Final LayoutInflater inflater = (LayoutInflater) getSystemService (Context. LAYOUT_INFLATER_SERVICE );
Final Sources sources = Sources. getInstance (ctx );
Modify the first part (with conditional judgment ):
If (size> 1 ){
Try {
Thread. sleep (200 );
} Catch (Exception e ){
Log. w (TAG, "bindEditors () sleep 200 ms exception =" + e );
}
}
The second modification:
EditContactActivity. this. runOnUiThread (new Runnable (){
Public void run (){
...
If (mLoadingDialog! = Null ){
The original code is as follows:
MLoadingDialog. dismiss ();
Changed:
MHandler. sendEmptyMessage (DISMISS_LOADING_DIALOG );
}
}
}