Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e2d3a22 authored by Eric Fischer's avatar Eric Fischer
Browse files

Second try at fixing replacement of a range of digits with a pause.

It was still not working all the time, because the automatic number
formatter could change the buffer offsets in between the deletion of
the old digits and the insertion of the pause character.  Do it as
a single operation so that nothing can happen in between.
parent 3b1a3550
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1024,8 +1024,7 @@ public class TwelveKeyDialer extends Activity implements View.OnClickListener,
                // position and update the mDigits.
                digits.replace(selectionStart, selectionStart, newDigits);
            } else {
                digits.delete(selectionStart, selectionEnd);
                digits.replace(selectionStart, selectionStart, newDigits);
                digits.replace(selectionStart, selectionEnd, newDigits);
            }
        } else {
            int len = mDigits.length();