Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
deBeauvoir
samourai-wallet-android
Commits
9b9cf2f2
Verified
Commit
9b9cf2f2
authored
Dec 08, 2021
by
Sarath
⚔
Browse files
Refactor mix tx adapter
parent
b79cf69f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/src/main/java/com/samourai/wallet/whirlpool/adapters/MixTxAdapter.kt
...va/com/samourai/wallet/whirlpool/adapters/MixTxAdapter.kt
+8
-8
No files found.
app/src/main/java/com/samourai/wallet/whirlpool/adapters/MixTxAdapter.kt
View file @
9b9cf2f2
...
...
@@ -4,7 +4,6 @@ import android.content.Context
import
android.text.format.DateUtils
import
android.transition.ChangeBounds
import
android.transition.TransitionManager
import
android.util.Log
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
...
...
@@ -91,20 +90,21 @@ class MixTxAdapter(private val mContext: Context) :
tx
)
}
if
(
tx
.
amount
<
0.0
)
{
holder
.
tvDirection
!!
.
setImageDrawable
(
holder
.
tvDirection
?
.
setImageDrawable
(
ContextCompat
.
getDrawable
(
mContext
,
R
.
drawable
.
out_going_tx_whtie_arrow
)
)
holder
.
tvAmount
?.
setTextColor
(
ContextCompat
.
getColor
(
mContext
,
R
.
color
.
white
))
holder
.
tvAmount
?.
text
=
"-"
+
if
(
isSatPrefs
)
FormatsUtil
.
formatSats
(
_amount
)
else
FormatsUtil
.
formatBTC
(
_amount
)
holder
.
txSubText
!!
.
visibility
=
View
.
VISIBLE
holder
.
txSubText
!!
.
setText
(
R
.
string
.
postmix_spend
)
val
amountStr
=
"-${if (isSatPrefs) FormatsUtil.formatSats(_amount) else FormatsUtil.formatBTC(
_amount
)}
"
holder
.
tvAmount
?.
text
=
amountStr
holder
.
txSubText
?.
visibility
=
View
.
VISIBLE
holder
.
txSubText
?.
setText
(
R
.
string
.
postmix_spend
)
}
else
{
TransitionManager
.
beginDelayedTransition
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment