From 9297cfaf4b9464db574f15dc63f0c8cbaa3eba92 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Thu, 18 Jul 2013 11:56:17 +0400 Subject: [PATCH] round brackets button --- android-app/res/layout/cpp_drag_button_round_brackets.xml | 2 +- .../org/solovyev/android/calculator/CalculatorKeyboardImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android-app/res/layout/cpp_drag_button_round_brackets.xml b/android-app/res/layout/cpp_drag_button_round_brackets.xml index 73b71a37..580a2631 100644 --- a/android-app/res/layout/cpp_drag_button_round_brackets.xml +++ b/android-app/res/layout/cpp_drag_button_round_brackets.xml @@ -26,7 +26,7 @@ xmlns:c="http://schemas.android.com/apk/res/org.solovyev.android.calculator" a:id="@id/cpp_button_round_brackets" c:textUp="(" - a:text="( )" + a:text="( )" c:textDown=")" c:textLeft="(…)" c:directionTextScale="0.5;0.5;0.5;0.33" diff --git a/core/src/main/java/org/solovyev/android/calculator/CalculatorKeyboardImpl.java b/core/src/main/java/org/solovyev/android/calculator/CalculatorKeyboardImpl.java index 4f779c04..bc3d6432 100644 --- a/core/src/main/java/org/solovyev/android/calculator/CalculatorKeyboardImpl.java +++ b/core/src/main/java/org/solovyev/android/calculator/CalculatorKeyboardImpl.java @@ -88,7 +88,7 @@ public class CalculatorKeyboardImpl implements CalculatorKeyboard { @Nonnull private String prepareText(@Nonnull String text) { - if ("( )".equals(text)) { + if ("( )".equals(text) || "( )".equals(text)) { return "()"; } else { return text;