Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9decce28 authored by Hans Boehm's avatar Hans Boehm Committed by Android Git Automerger
Browse files

am 15a853dd: Restore original scroll position on =

* commit '15a853dd':
  Restore original scroll position on =
parents d5ba5a89 15a853dd
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -818,8 +818,11 @@ class Evaluator {
            // Notify immediately, reusing existing result.
            int dotPos = mCache.indexOf('.');
            String truncatedWholePart = mCache.substring(0, dotPos);
            int leastDigPos = getLsd(mRatVal, mCache, dotPos);
            mCalculator.onEvaluate(mLastDigs, getMsd(), leastDigPos, truncatedWholePart);
            int leastDigOffset = getLsd(mRatVal, mCache, dotPos);
            int msdIndex = getMsd();
            int preferredPrecOffset = getPreferredPrec(mCache, msdIndex, leastDigOffset);
            mCalculator.onEvaluate(preferredPrecOffset, msdIndex, leastDigOffset,
                    truncatedWholePart);
        }
    }