round brackets button
This commit is contained in:
parent
525165a0c8
commit
9297cfaf4b
@ -26,7 +26,7 @@
|
|||||||
xmlns:c="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
xmlns:c="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
|
||||||
a:id="@id/cpp_button_round_brackets"
|
a:id="@id/cpp_button_round_brackets"
|
||||||
c:textUp="("
|
c:textUp="("
|
||||||
a:text="( )"
|
a:text="( )"
|
||||||
c:textDown=")"
|
c:textDown=")"
|
||||||
c:textLeft="(…)"
|
c:textLeft="(…)"
|
||||||
c:directionTextScale="0.5;0.5;0.5;0.33"
|
c:directionTextScale="0.5;0.5;0.5;0.33"
|
||||||
|
@ -88,7 +88,7 @@ public class CalculatorKeyboardImpl implements CalculatorKeyboard {
|
|||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
private String prepareText(@Nonnull String text) {
|
private String prepareText(@Nonnull String text) {
|
||||||
if ("( )".equals(text)) {
|
if ("( )".equals(text) || "( )".equals(text)) {
|
||||||
return "()";
|
return "()";
|
||||||
} else {
|
} else {
|
||||||
return text;
|
return text;
|
||||||
|
Loading…
Reference in New Issue
Block a user