1. 21 Jul, 2015 3 commits
  2. 20 Jul, 2015 1 commit
    • Hans Boehm's avatar
      More correctly pronounce advanced operators in Talkback · 8a4f81c5
      Hans Boehm authored
      Bug: 19190211
      Bug: 19202945
      Bug: 21052751
      Bug: 19165054
      Bug: 22594908
      
      Add TtsSpans for operators that are otherwise misread by TalkBack.
      Force correct reading for some individual characters.
      
      This greatly improves Talkback for advanced operators in Calculator.
      
      This is imperfect. There is no guarantee that the strings I'm
      using will work in all languages.  But they're almost certainly better than
      what we have now.  And it makes parentheses and factorial usable,
      though perhaps a bit verbose.
      
      We also no longer pronounce "sine" as "sin".
      
      Removed some now obsolete TODO comments.
      
      Change-Id: I5236f682be828699e08dca04ee6fa073269964f6
      8a4f81c5
  3. 15 Jul, 2015 4 commits
  4. 14 Jul, 2015 4 commits
  5. 13 Jul, 2015 2 commits
  6. 11 Jul, 2015 1 commit
  7. 09 Jul, 2015 4 commits
    • Hans Boehm's avatar
      am c2269122: am 8f4a8c73: am 0b9806f6: Support pasting of scientific notation numbers · e1343214
      Hans Boehm authored
      * commit 'c2269122':
        Support pasting of scientific notation numbers
      e1343214
    • Hans Boehm's avatar
      am 8f4a8c73: am 0b9806f6: Support pasting of scientific notation numbers · c2269122
      Hans Boehm authored
      * commit '8f4a8c73':
        Support pasting of scientific notation numbers
      c2269122
    • Hans Boehm's avatar
      am 0b9806f6: Support pasting of scientific notation numbers · 8f4a8c73
      Hans Boehm authored
      * commit '0b9806f6':
        Support pasting of scientific notation numbers
      8f4a8c73
    • Hans Boehm's avatar
      Support pasting of scientific notation numbers · 0b9806f6
      Hans Boehm authored
      Bug: 21470972
      
      Support pasting of numbers using scientific notation with 'E'.  This
      is intentionally very restricted to dodge ambiguities with the
      constant e.  We only accept a scientific notation constant if it is
      
      1) Contained within a single pasted text element.
      2) Uses capital 'E' to introduce the exponent.
      3) Does not contain an explicit '+' in the exponent.
      
      We do currently use the same notion of 'digit' as elsewhere, i.e.
      Character.isDigit(), which might be too general.
      
      For consistency, and to make sure that we can recognize machine
      generated output, this also adds a few more aliases for text input
      of arithmetic operators.
      
      For consistency, always use 'E' internally for scientific notation as
      well.
      
      We ensure that a pasted numeric string is not concatenated with
      a pre-existing constant.  This is a judgment call, but it means
      that pasting a previous calculator result gets similar treatment
      whether or not we are still running the same calculator instance.
      
      We support limited editing on exponents.  Once an exponent is deleted,
      the only way to restore it is via pasting.  The 10^x button
      produces similar results, though with different operator precedence
      behavior.
      
      Change-Id: I2d0f3dceb641cdad327fd3c3540b5eea38030146
      0b9806f6
  8. 08 Jul, 2015 5 commits
  9. 06 Jul, 2015 4 commits
  10. 02 Jul, 2015 2 commits
  11. 01 Jul, 2015 4 commits
  12. 30 Jun, 2015 2 commits
    • Hans Boehm's avatar
      am a3723849: Reimplement overflow menu messages as DialogFragments · 3d0758aa
      Hans Boehm authored
      * commit 'a3723849':
        Reimplement overflow menu messages as DialogFragments
      3d0758aa
    • Hans Boehm's avatar
      Reimplement overflow menu messages as DialogFragments · a3723849
      Hans Boehm authored
      Bug: 20650813
      
      This preserves fraction and "with leading digits" displays during
      rotation.
      
      It also turns out to easily support copy, which is a useful bonus,
      since it was an obvious hole in the UI for the fraction display.
      For the "with leading digits" display, this is similar to a
      plain display copy, but it allows character-level selection.
      
      Much of the code here was cloned from Justin's.
      
      Change-Id: I4805280fa6a46f06833be0bde9563c3ce04dca45
      a3723849
  13. 28 Jun, 2015 1 commit
  14. 27 Jun, 2015 1 commit
    • Hans Boehm's avatar
      Make trailing operator handling consistent with L · e8553769
      Hans Boehm authored
      Bug: 246391
      
      Only ignore trailing BINARY operators when computing instant results.
      We used to be much more aggressive.
      
      Also ignore trailing binary operators when the user hits "=".
      
      This makes us consistent with the L design and ensures that instant
      results don't turn into errors when the user hits "=".
      
      Change-Id: I260e95d152168b70774330ac95d5bc567cf79b3d
      e8553769
  15. 24 Jun, 2015 2 commits