Permalink
Browse files

dictionary warning back, but exponents fixed

  • Loading branch information...
1 parent 5793c72 commit 4c7a773d5e1dbe10382264912ce2ab6481004c21 @Xlythe committed Feb 3, 2013
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/com/android2/calculator3/view/CalculatorEditText.java
@@ -82,16 +82,7 @@ public void afterTextChanged(Editable s) {
updating = true;
int selectionHandle = getSelectionStart();
- if(getWidth() == 0) {
- // Wont show exponents unless I use setText on startup
- setText(Html.fromHtml(mEquationFormatter.insertSupscripts(input)));
- }
- else {
- // Use Editable.insert to avoid the Dictionary from
- // complaining and underlying everything in red
- s.clear();
- s.insert(0, Html.fromHtml(mEquationFormatter.insertSupscripts(input)));
- }
+ setText(Html.fromHtml(mEquationFormatter.insertSupscripts(input)));
try {
setSelection(selectionHandle);
}

0 comments on commit 4c7a773

Please sign in to comment.