Long minus check was forgotten
This commit is contained in:
parent
25adac1dcd
commit
75a8231afc
@ -23,6 +23,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
a:layout_width="match_parent"
|
a:layout_width="match_parent"
|
||||||
a:layout_height="wrap_content"
|
a:layout_height="wrap_content"
|
||||||
a:orientation="horizontal">
|
a:orientation="horizontal">
|
||||||
@ -32,21 +33,24 @@
|
|||||||
a:layout_width="0dp"
|
a:layout_width="0dp"
|
||||||
a:layout_height="wrap_content"
|
a:layout_height="wrap_content"
|
||||||
a:layout_weight="1"
|
a:layout_weight="1"
|
||||||
a:text="-" />
|
a:text="−"
|
||||||
|
tools:ignore="HardcodedText"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
a:id="@+id/function_up_param_button"
|
a:id="@+id/function_up_param_button"
|
||||||
a:layout_width="0dp"
|
a:layout_width="0dp"
|
||||||
a:layout_height="wrap_content"
|
a:layout_height="wrap_content"
|
||||||
a:layout_weight="1"
|
a:layout_weight="1"
|
||||||
a:text="↑" />
|
a:text="↑"
|
||||||
|
tools:ignore="HardcodedText"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
a:id="@+id/function_down_param_button"
|
a:id="@+id/function_down_param_button"
|
||||||
a:layout_width="0dp"
|
a:layout_width="0dp"
|
||||||
a:layout_height="wrap_content"
|
a:layout_height="wrap_content"
|
||||||
a:layout_weight="1"
|
a:layout_weight="1"
|
||||||
a:text="↓" />
|
a:text="↓"
|
||||||
|
tools:ignore="HardcodedText"/>
|
||||||
|
|
||||||
<org.solovyev.android.calculator.function.FunctionParamEditText
|
<org.solovyev.android.calculator.function.FunctionParamEditText
|
||||||
a:id="@+id/function_param_edit_text"
|
a:id="@+id/function_param_edit_text"
|
||||||
|
@ -79,7 +79,8 @@ public abstract class AbstractNumberBuilder {
|
|||||||
|
|
||||||
private boolean isSignAfterE(@Nonnull MathType.Result mathTypeResult) {
|
private boolean isSignAfterE(@Nonnull MathType.Result mathTypeResult) {
|
||||||
if (!isHexMode()) {
|
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;
|
final StringBuilder localNb = numberBuilder;
|
||||||
if (localNb != null && localNb.length() > 0) {
|
if (localNb != null && localNb.length() > 0) {
|
||||||
if (localNb.charAt(localNb.length() - 1) == MathType.POWER_10) {
|
if (localNb.charAt(localNb.length() - 1) == MathType.POWER_10) {
|
||||||
|
Loading…
Reference in New Issue
Block a user