From 7edbd0c3bf15db0c3a601b02f95a4cd473ec4a97 Mon Sep 17 00:00:00 2001 From: Nicolas Catania Date: Mon, 28 Sep 2009 20:37:33 -0700 Subject: [PATCH] Cancel the selection and move the cursor pass the wait/pause symbol. When a selection is active and a special wait/pause charater is inserted, it should replace the selection (currently done) but is should also deselect the resulting area and move back to cursor positioned after the inserted wait/pause character. Bug:2150657 --- src/com/android/contacts/TwelveKeyDialer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/contacts/TwelveKeyDialer.java b/src/com/android/contacts/TwelveKeyDialer.java index d07d785..58ba9d8 100644 --- a/src/com/android/contacts/TwelveKeyDialer.java +++ b/src/com/android/contacts/TwelveKeyDialer.java @@ -1028,6 +1028,8 @@ public class TwelveKeyDialer extends Activity implements View.OnClickListener, digits.replace(selectionStart, selectionStart, newDigits); } else { digits.replace(selectionStart, selectionEnd, newDigits); + // Unselect: back to a regular cursor, just pass the character inserted. + mDigits.setSelection(selectionStart + 1); } } else { int len = mDigits.length(); -- 2.11.0