diff options
author | Hans Boehm <hboehm@google.com> | 2015-05-11 16:26:03 -0700 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2015-05-13 17:29:33 -0700 |
commit | 1176f23dae4d3740782e46463003e9f36a381c9d (patch) | |
tree | 1ed5854668ce3481f67a4c5c48a090913adc1a54 /src/com/android/calculator2/Evaluator.java | |
parent | e2c40a5792d7edf5242ee885573e5dfc19378734 (diff) | |
download | android_packages_apps_ExactCalculator-1176f23dae4d3740782e46463003e9f36a381c9d.tar.gz android_packages_apps_ExactCalculator-1176f23dae4d3740782e46463003e9f36a381c9d.tar.bz2 android_packages_apps_ExactCalculator-1176f23dae4d3740782e46463003e9f36a381c9d.zip |
Improve copy/paste handling, minor instant result fixes
Bug: 20764417
Bug: 20838790
Finish the action mode when we do almost anything else.
We should probably be even more aggressive about terminating it,
and we may eventually want to use a different approach.
But this avoids the crashes, and greatly improves the behavior.
Display copy menu only when there is something to copy.
Fix a couple of bugs introduced by recent instant display overhaul
(one line each):
- Instant display disappeared on rotation.
- It was sometimes still possible to scroll the previous result after
CLR.
Change-Id: I1a91d312358898add1e281aaba116d709b4c92a7
Diffstat (limited to 'src/com/android/calculator2/Evaluator.java')
-rw-r--r-- | src/com/android/calculator2/Evaluator.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/calculator2/Evaluator.java b/src/com/android/calculator2/Evaluator.java index 3b393ef..ad232db 100644 --- a/src/com/android/calculator2/Evaluator.java +++ b/src/com/android/calculator2/Evaluator.java @@ -752,6 +752,7 @@ class Evaluator { } void restoreInstanceState(DataInput in) { + mChangedValue = true; try { CalculatorExpr.initExprInput(); mDegreeMode = in.readBoolean(); |