From 2e10cdf4ffbb41c1f8e4defb1424bef91b6812f3 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Fri, 16 Sep 2011 17:55:00 +0400 Subject: [PATCH] fix for history action --- .../java/org/solovyev/android/calculator/CalculatorView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/solovyev/android/calculator/CalculatorView.java b/src/main/java/org/solovyev/android/calculator/CalculatorView.java index 8eb08744..877ed542 100644 --- a/src/main/java/org/solovyev/android/calculator/CalculatorView.java +++ b/src/main/java/org/solovyev/android/calculator/CalculatorView.java @@ -114,8 +114,8 @@ public class CalculatorView implements CursorControl{ // actually nothing shall be logged while text operations are done evaluate(editorStateAfter, true); - if (history.isRedoAvailable()) { - history.redo(getCurrentHistoryState()); + if (history.isUndoAvailable()) { + history.undo(getCurrentHistoryState()); } saveHistoryState(); }