diff --git a/app/src/main/java/net/mynero/wallet/adapter/SubaddressAdapter.java b/app/src/main/java/net/mynero/wallet/adapter/SubaddressAdapter.java index 7e491b8..377c0ee 100644 --- a/app/src/main/java/net/mynero/wallet/adapter/SubaddressAdapter.java +++ b/app/src/main/java/net/mynero/wallet/adapter/SubaddressAdapter.java @@ -30,6 +30,7 @@ import net.mynero.wallet.model.CoinsInfo; import net.mynero.wallet.model.Wallet; import net.mynero.wallet.service.PrefService; import net.mynero.wallet.util.Constants; +import net.mynero.wallet.util.Helper; import java.util.ArrayList; import java.util.List; @@ -94,6 +95,7 @@ public class SubaddressAdapter extends RecyclerView.Adapter 0) { + boolean streetMode = PrefService.getInstance().getBoolean(Constants.PREF_STREET_MODE, false); + if(streetMode) { + addressAmountTextView.setText(itemView.getContext().getString(R.string.tx_list_amount_positive, + Constants.STREET_MODE_BALANCE)); + } else { + addressAmountTextView.setText(itemView.getContext().getString(R.string.tx_list_amount_positive, + Helper.getDisplayAmount(amount, Helper.DISPLAY_DIGITS_INFO))); + } + } + else + addressAmountTextView.setText(""); itemView.setOnClickListener(view -> listener.onSubaddressSelected(subaddress)); } diff --git a/app/src/main/res/layout/address_item.xml b/app/src/main/res/layout/address_item.xml index 42cacdb..0b00f57 100644 --- a/app/src/main/res/layout/address_item.xml +++ b/app/src/main/res/layout/address_item.xml @@ -35,4 +35,20 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" android:singleLine="true" /> + + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 670b69c..ecb388b 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -11,7 +11,7 @@ #F4F4F4 #cb5a2e #FF104E - #19ED60 + #13D855 #CB2E2E #838383 #7E37F1 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 865c09f..bbc567b 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -11,7 +11,7 @@ @color/oled_colorOnBackground #f38854 @color/oled_favouriteColor - #19ED60 + #13D855 #f38854 #171717 #3DC2FF