summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
040d5ba)
not in the header/padding (these would throw on setCurrency(null) call)
currencyObserver = this::setCurrency;
showCurrencyObserver = showCurrency -> {
currencyObserver = this::setCurrency;
showCurrencyObserver = showCurrency -> {
- if (showCurrency) {
- tvCurrency.setVisibility(View.VISIBLE);
- }
- else {
- tvCurrency.setVisibility(View.GONE);
- setCurrencyString(null);
- }
+ if (item.getType() == ItemType.transactionRow) {
+ if (showCurrency) {
+ tvCurrency.setVisibility(View.VISIBLE);
+ }
+ else {
+ tvCurrency.setVisibility(View.GONE);
+ item.setCurrency(null);
+ }
+ }
};
}
private void updateCurrencyPositionAndPadding(Currency.Position position, boolean hasGap) {
};
}
private void updateCurrencyPositionAndPadding(Currency.Position position, boolean hasGap) {