mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Add new handling to encourage the user to save their wallet recovery phrase.
This only effects those who have opted in to payments and have a non-zero balance.
This commit is contained in:
@@ -68,6 +68,8 @@ public abstract class Money {
|
||||
|
||||
public abstract boolean isNegative();
|
||||
|
||||
public abstract boolean isEqualOrLessThanZero();
|
||||
|
||||
public abstract Money negate();
|
||||
|
||||
public abstract Money abs();
|
||||
@@ -147,6 +149,11 @@ public abstract class Money {
|
||||
return amount.signum() == -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEqualOrLessThanZero() {
|
||||
return amount != null && amount.compareTo(BigInteger.ZERO) <= 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MobileCoin negate() {
|
||||
return new MobileCoin(amount.negate());
|
||||
|
||||
Reference in New Issue
Block a user