Skip to content

Commit

Permalink
Merge pull request #15 from KoalaSat/zaps-display-to-int
Browse files Browse the repository at this point in the history
Zaps display to int
  • Loading branch information
KoalaSat authored Oct 25, 2024
2 parents d711245 + c217501 commit 3a745cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class NotificationsService : Service() {
title = getString(R.string.new_zap)
val bolt11 = event.firstTag("bolt11")
if (!bolt11.isNullOrEmpty()) {
val sats = LnInvoiceUtil.getAmountInSats(bolt11)
val sats = LnInvoiceUtil.getAmountInSats(bolt11).toInt()
text = "$sats Sats"
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
android:layout_width="57dp"
android:layout_height="48dp"
android:layout_marginStart="9dp"
android:padding="6dp"
android:drawableTop="@drawable/ic_amber"
android:drawablePadding="22dp"
android:gravity="center"
Expand Down

0 comments on commit 3a745cc

Please sign in to comment.