Long minus check was forgotten

This commit is contained in:
serso 2015-02-23 10:24:12 +01:00
parent 25adac1dcd
commit 75a8231afc
2 changed files with 13 additions and 8 deletions

View File

@ -23,6 +23,7 @@
-->
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:orientation="horizontal">
@ -32,21 +33,24 @@
a:layout_width="0dp"
a:layout_height="wrap_content"
a:layout_weight="1"
a:text="-" />
a:text=""
tools:ignore="HardcodedText"/>
<Button
a:id="@+id/function_up_param_button"
a:layout_width="0dp"
a:layout_height="wrap_content"
a:layout_weight="1"
a:text="↑" />
a:text="↑"
tools:ignore="HardcodedText"/>
<Button
a:id="@+id/function_down_param_button"
a:layout_width="0dp"
a:layout_height="wrap_content"
a:layout_weight="1"
a:text="↓" />
a:text="↓"
tools:ignore="HardcodedText"/>
<org.solovyev.android.calculator.function.FunctionParamEditText
a:id="@+id/function_param_edit_text"

View File

@ -79,7 +79,8 @@ public abstract class AbstractNumberBuilder {
private boolean isSignAfterE(@Nonnull MathType.Result mathTypeResult) {
if (!isHexMode()) {
if ("-".equals(mathTypeResult.getMatch()) || "+".equals(mathTypeResult.getMatch())) {
final String match = mathTypeResult.getMatch();
if ("".equals(match) || "-".equals(match) || "+".equals(match)) {
final StringBuilder localNb = numberBuilder;
if (localNb != null && localNb.length() > 0) {
if (localNb.charAt(localNb.length() - 1) == MathType.POWER_10) {