mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-11 00:15:08 +02:00
Quick fix for to not show error messages on Zap the Devs
This commit is contained in:
@@ -16,8 +16,8 @@ android {
|
|||||||
applicationId "com.vitorpamplona.amethyst"
|
applicationId "com.vitorpamplona.amethyst"
|
||||||
minSdk libs.versions.android.minSdk.get().toInteger()
|
minSdk libs.versions.android.minSdk.get().toInteger()
|
||||||
targetSdk libs.versions.android.targetSdk.get().toInteger()
|
targetSdk libs.versions.android.targetSdk.get().toInteger()
|
||||||
versionCode 397
|
versionCode 398
|
||||||
versionName "0.90.0"
|
versionName "0.90.1"
|
||||||
buildConfigField "String", "RELEASE_NOTES_ID", "\"5d9a4fd0aba7ffefbf989152479237bd182578e58e59eb2fbfe94f6de8011803\""
|
buildConfigField "String", "RELEASE_NOTES_ID", "\"5d9a4fd0aba7ffefbf989152479237bd182578e58e59eb2fbfe94f6de8011803\""
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
@@ -81,6 +81,7 @@ class ZapPaymentHandler(
|
|||||||
val lud16 = note.author?.info?.lnAddress()
|
val lud16 = note.author?.info?.lnAddress()
|
||||||
|
|
||||||
if (lud16.isNullOrBlank()) {
|
if (lud16.isNullOrBlank()) {
|
||||||
|
if (showErrorIfNoLnAddress) {
|
||||||
onError(
|
onError(
|
||||||
stringRes(context, R.string.missing_lud16),
|
stringRes(context, R.string.missing_lud16),
|
||||||
stringRes(
|
stringRes(
|
||||||
@@ -88,6 +89,7 @@ class ZapPaymentHandler(
|
|||||||
R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats,
|
R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
}
|
||||||
return@withContext
|
return@withContext
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +99,7 @@ class ZapPaymentHandler(
|
|||||||
val lud16 = note.author?.info?.lnAddress()
|
val lud16 = note.author?.info?.lnAddress()
|
||||||
|
|
||||||
if (lud16.isNullOrBlank()) {
|
if (lud16.isNullOrBlank()) {
|
||||||
|
if (showErrorIfNoLnAddress) {
|
||||||
onError(
|
onError(
|
||||||
stringRes(context, R.string.missing_lud16),
|
stringRes(context, R.string.missing_lud16),
|
||||||
stringRes(
|
stringRes(
|
||||||
@@ -104,6 +107,7 @@ class ZapPaymentHandler(
|
|||||||
R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats,
|
R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
}
|
||||||
return@withContext
|
return@withContext
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user