diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index a56eae6..4e0afe3 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -205,7 +205,7 @@
anterior saldo %1$s]]>
tarifa %1$s (%2$s)]]>
- fiat valor %1$s (%2$s)]]>
+ valor fiat %1$s (%2$s)]]>
cadena tarifa %1$s]]>
hash %1$s]]>
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
index 92a1042..2355673 100644
--- a/app/src/main/res/values-pt/strings.xml
+++ b/app/src/main/res/values-pt/strings.xml
@@ -236,20 +236,20 @@
Carteira de hardware ou zpub
Gerenciar carteiras chain
- Carteira legacy
+ Carteira antiga
Carteira moderna
- Use PIN authentication
+ Bloquear com PIN
Aplicar conexão Tor
O pagamento falhou porque as rotas mais caras foram descartadas. Gostaria de tentar novamente pagando mais em taxas?
A sincronização de canais ainda não terminou, por favor agüarde um pouco mais com o aplicativo aberto.
Parece que o recipiente deste pagamento está offline agora
- Unidade de bitcoin
- Moeda fiduciária
+ Unidade de Bitcoin
+ Moeda governamental
host:port
- Node Electrum personalizado
+ Servidor Electrum personalizado
Usando node Electrum personalizado
Usando nodes aleatórios no momento
Reinicie para aplicar as alterações
@@ -261,23 +261,23 @@
- - preparing
- - %1$d part in-flight
- - %1$d parts in-flight
+ - preparando
+ - %1$d parte pendente
+ - %1$d partes pendentes
- - waiting
- - %1$d\%% collected
- - %1$d\%% collected
- - finalizing
+ - esperando
+ - %1$d\%% recebido
+ - %1$d\%% recebido
+ - finalizando
- - waiting
- - %1$d block
- - %1$d blocks
- - %1$d+ blocks
+ - esperando
+ - %1$d bloco
+ - %1$d blocos
+ - %1$d+ blocos
@@ -297,8 +297,8 @@
%2$s]]>
- Hold up to %1$s minutes
- Attach wallet identity
+ Segurar por até %1$s minutos
+ Incluir identificação
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 83b9175..cd51c4b 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -302,7 +302,7 @@
Держать до %1$s минут
- Attach wallet identity
+ Attach identity
Логин
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 0a833d4..cdac0a6 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -302,7 +302,7 @@
Hold up to %1$s minutes
- Attach wallet identity
+ Attach identity
Login
diff --git a/app/src/main/scala/BaseActivity.scala b/app/src/main/scala/BaseActivity.scala
index cf50b43..57e0894 100644
--- a/app/src/main/scala/BaseActivity.scala
+++ b/app/src/main/scala/BaseActivity.scala
@@ -1108,10 +1108,10 @@ trait BaseActivity extends AppCompatActivity { self =>
getString(R.string.dialog_up_to).format(canSendHuman).html
)
- manager.inputAmount addTextChangedListener onTextChange { _ =>
+ manager.inputAmount.addTextChangedListener(onTextChange { _ =>
updatePopupButton(getNeutralButton(alert), isNeutralEnabled)
updatePopupButton(getPositiveButton(alert), isPayEnabled)
- }
+ })
def neutral(alert: AlertDialog): Unit
def send(alert: AlertDialog): Unit
@@ -1241,14 +1241,14 @@ trait BaseActivity extends AppCompatActivity { self =>
)
}
- manager.inputAmount addTextChangedListener onTextChange { _ =>
+ manager.inputAmount.addTextChangedListener(onTextChange { _ =>
val withinBounds =
finalMinReceivable <= manager.resultMsat && finalMaxReceivable >= manager.resultMsat
updatePopupButton(
button = getPositiveButton(alert),
isEnabled = withinBounds
)
- }
+ })
manager.hintFiatDenom.setText(
getString(R.string.dialog_up_to).format(canReceiveFiatHuman).html
diff --git a/app/src/main/scala/HubActivity.scala b/app/src/main/scala/HubActivity.scala
index 4c3c9bb..b1522d4 100644
--- a/app/src/main/scala/HubActivity.scala
+++ b/app/src/main/scala/HubActivity.scala
@@ -1202,6 +1202,7 @@ class HubActivity
// .parsedWithSign(info.balanceSnapshot),
// R.drawable.border_white
// )
+
if (info.isIncoming && info.status == PaymentStatus.PENDING)
addFlowChip(
extraInfo,
@@ -2746,7 +2747,7 @@ class HubActivity
def proceed(alert: AlertDialog): Unit = runAnd(alert.dismiss) {
runInFutureProcessOnUI(
- InputParser recordValue extraInput.getText.toString,
+ InputParser.recordValue(extraInput.getText.toString),
onFail
) { _ =>
def attemptProcessInput(): Unit =
@@ -3355,7 +3356,7 @@ class HubActivity
override val alert: AlertDialog = {
val text = getString(R.string.dialog_lnurl_pay).format(
data.callbackUrl.hostOption.get.value,
- s"
${data.meta.textShort}"
+ s"
${data.meta.textShort.getOrElse("")}"
)
val title = titleBodyAsViewBuilder(
text.asColoredView(R.color.ourPurple),
diff --git a/app/src/main/scala/RemotePeerActivity.scala b/app/src/main/scala/RemotePeerActivity.scala
index 464314c..2e68b7a 100644
--- a/app/src/main/scala/RemotePeerActivity.scala
+++ b/app/src/main/scala/RemotePeerActivity.scala
@@ -35,7 +35,7 @@ object RemotePeerActivity {
def implantNewChannel(cs: Commitments, freshChannel: Channel): Unit = {
// Make an immediate channel backup if anything goes wrong next
// At this point channel has saved itself in the database
- WalletApp.immediatelySaveBackup()
+ WalletApp.immediatelySaveBackup
LNParams.cm.pf.process(PathFinder.CMDStartPeriodicResync)
LNParams.cm.all += Tuple2(cs.channelId, freshChannel)
@@ -397,7 +397,7 @@ class RemotePeerActivity
feeOpt = Some(res.fee.toMilliSatoshi),
showIssue = false
)
- case Failure(exc) =>
+ case Failure(_) =>
update(
feeOpt = None,
showIssue =
diff --git a/app/src/main/scala/SettingsActivity.scala b/app/src/main/scala/SettingsActivity.scala
index 52bc40e..b6376de 100644
--- a/app/src/main/scala/SettingsActivity.scala
+++ b/app/src/main/scala/SettingsActivity.scala
@@ -1,5 +1,6 @@
package wtf.nbd.obw
+import scala.util.Success
import android.content.Intent
import android.os.Bundle
import android.view.{View, ViewGroup}
@@ -22,8 +23,6 @@ import immortan.crypto.Tools._
import immortan.utils.{BtcDenomination, SatDenomination}
import immortan.{ChannelMaster, LNParams}
-import scala.util.Success
-
abstract class SettingsHolder(host: BaseActivity) {
lazy val view: RelativeLayout = host.getLayoutInflater
.inflate(R.layout.frag_switch, null, false)
@@ -94,7 +93,7 @@ class SettingsActivity
def updateView(): Unit = {
val backupAllowed = LocalBackup.isAllowed(context = WalletApp.app)
if (backupAllowed && LNParams.cm.all.nonEmpty)
- WalletApp.immediatelySaveBackup()
+ WalletApp.immediatelySaveBackup
val title =
if (backupAllowed) R.string.settings_backup_enabled
else R.string.settings_backup_disabled
diff --git a/app/src/main/scala/SetupActivity.scala b/app/src/main/scala/SetupActivity.scala
index 711f9db..7f4038e 100644
--- a/app/src/main/scala/SetupActivity.scala
+++ b/app/src/main/scala/SetupActivity.scala
@@ -128,9 +128,9 @@ class SetupActivity extends BaseActivity {
WalletApp.saveBackup(())
proceedWithMnemonics(mnemonics)
- case Failure(exception) =>
+ case Failure(exc) =>
val msg = getString(R.string.error_could_not_decrypt)
- onFail(msg format exception.getMessage)
+ onFail(msg.format(exc.getMessage))
}
}
}
diff --git a/app/src/main/scala/WalletApp.scala b/app/src/main/scala/WalletApp.scala
index b47f572..051b181 100644
--- a/app/src/main/scala/WalletApp.scala
+++ b/app/src/main/scala/WalletApp.scala
@@ -92,7 +92,7 @@ object WalletApp {
catch none
}
})
- val saveBackup = debounce[Unit](_ => immediatelySaveBackup(), 4.seconds)
+ val saveBackup = debounce[Unit](_ => immediatelySaveBackup, 4.seconds)
final val FIAT_CODE = "fiatCode"
final val BTC_DENOM = "btcDenom"