This project is mirrored from https://github.com/LineageOS/android_packages_apps_ExactCalculator. Pull mirroring updated .
  1. 21 Apr, 2017 1 commit
  2. 02 Apr, 2017 4 commits
  3. 12 Mar, 2017 1 commit
  4. 28 Feb, 2017 1 commit
  5. 27 Feb, 2017 3 commits
  6. 24 Feb, 2017 1 commit
  7. 09 Feb, 2017 3 commits
  8. 03 Feb, 2017 6 commits
  9. 02 Feb, 2017 6 commits
  10. 01 Feb, 2017 3 commits
    • Annie Chin's avatar
    • Hans Boehm's avatar
      Do not use HISTORY_MAIN_INDEX as clipboard or memory index · 8bf0dca1
      Hans Boehm authored
      Bug: 34697529
      
      We were potentially saving HISTORY_MAIN_INDEX (-1) as the expression
      index for the clipboard or memory expression, without actually saving
      expression at that index.
      
      Deal with the fact that sharedpreferences or the database may have
      been corrupted with such spurious -1 values.
      
      As part of this, we also make the memory operations much more
      robust against trying to use an erroneous answer. This seems like
      a good idea anyway, since there are probably other, also extremely
      unlikely, cases in which this can occur. (Recall that some expressions
      evaluate to an error only when the precision is increased
      sufficiently.)
      
      Test: Unit tests pass. Installed old calculator and arranged to
      corrupt saved location as well as some history entries. The bad
      history entries show up with an answer of "Bad Expression".
      Trying th use the "Bad Expression" result no longer crashes for me.
      
      Change-Id: I0b1a897ce018353c4b67248f84fccde82fc43e92
      (cherry picked from commit 7451da4b6bb1cb40440fb755e8344f90bc38ecb5)
      8bf0dca1
    • Annie Chin's avatar
      Change popBackStackImmediate to popBackStack. · 2a0f9c0f
      Annie Chin authored
      Fixes: 34801945
      
      Immediate is no longer necessary since we don't reuse HistoryFragments.
      
      Change-Id: Ieb31882df8e9c01b753f27f91aa9f0f70e219019
      2a0f9c0f
  11. 31 Jan, 2017 4 commits
  12. 30 Jan, 2017 2 commits
  13. 27 Jan, 2017 1 commit
  14. 11 Jan, 2017 1 commit
  15. 09 Jan, 2017 3 commits