Skip to content

Commit 226b316

Browse files
committed
feat: localize max boost error message
1 parent 739bbd3 commit 226b316

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package to.bitkit.ui.screens.wallets.activity
22

3+
import android.annotation.SuppressLint
34
import androidx.compose.foundation.Canvas
45
import androidx.compose.foundation.background
56
import androidx.compose.foundation.layout.Arrangement
@@ -176,6 +177,7 @@ fun ActivityDetailScreen(
176177

177178
if (boostSheetVisible) {
178179
(item as? Activity.Onchain)?.let {
180+
@SuppressLint("LocalContextGetResourceValueCall")
179181
BoostTransactionSheet(
180182
onDismiss = detailViewModel::onDismissBoostSheet,
181183
item = it,
@@ -200,7 +202,7 @@ fun ActivityDetailScreen(
200202
app.toast(
201203
type = Toast.ToastType.ERROR,
202204
title = context.getString(R.string.wallet__send_fee_error),
203-
description = "Unable to increase the fee any further. Otherwise, it will exceed half the current input balance" // TODO CREATE STRING RESOURCE
205+
description = context.getString(R.string.wallet__boost_error_msg_max)
204206
)
205207
},
206208
onMinFee = {

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@
10751075
<string name="wallet__boost_success_msg">The transaction was successfully boosted.</string>
10761076
<string name="wallet__boost_error_title">Boost Failed</string>
10771077
<string name="wallet__boost_error_msg">Bitkit was unable to boost the transaction.</string>
1078+
<string name="wallet__boost_error_msg_max">Unable to increase the fee any further. Otherwise, it will exceed half the current input balance</string>
10781079
<string name="wallet__boost_fee_custom">Your transaction may settle faster if you include an additional network fee. Set your custom fee below.</string>
10791080
<string name="wallet__boost_fee_recomended">Your transaction may settle faster if you include an additional network fee. Here is a recommendation:</string>
10801081
<string name="wallet__boost_recomended_button">Use Suggested Fee</string>

0 commit comments

Comments
 (0)