You need to press the Dial button below and return to the dial pad without emptying. Please modify the following two files. (1) Modify the following part of the Dialbuttonpressedinner () method of the Dialpadfragment.java file:
if (textutils.isempty (number)) {
.......................
}else{
if (number! = NULL
&&! Textutils.isempty (...)
...........) {
..................
}else{
Final Intent Intent = contactsutils.getcallintent (number,
(Getactivity () instanceof dialtactsactivity?
((dialtactsactivity) getactivity ()). Getcallorigin (): null), type);
Mcalloptionhandler.docalloptionhandle (Intent);
Modify the starting pointMcleardigitsonstop = true;
if (Mdigits.gettext (). Length () > 0) {
Log ("Mdigits.gettext ()" + Mdigits.gettext (). toString ());
Mdigits.settext (Empty_number);
// }
At the end of the modification
}
} (2) The following part of the Onresume () method of the Dialersearchcontroller.java file:
if (mconfigfromintent) {
.................
}else if (madapter! = null) {
if (madapter.isdigitscleared ()) {
...............
}else if (mdatachanged) {
Modify the starting point
Forceloadall ();//Modify end point
if (mdigits! = null && mdigits.length () = = 0) {
Forceloadall ();
}}else if (mdigits! = null && (mdigits.length () > 0)) {
.............
}
}
Android dial Enter the number when calling, return to the dial after the call, how to save the previously entered number