From d9cde750d0fda4c587fbd7e2d1a2f4cabfa97270 Mon Sep 17 00:00:00 2001 From: Tuomas Airaksinen Date: Mon, 18 Sep 2023 20:22:41 +0300 Subject: [PATCH] Update help screen (closes #2859) --- app/src/main/java/net/bible/service/common/CommonUtils.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/bible/service/common/CommonUtils.kt b/app/src/main/java/net/bible/service/common/CommonUtils.kt index 9fd04889ac..389189fd29 100644 --- a/app/src/main/java/net/bible/service/common/CommonUtils.kt +++ b/app/src/main/java/net/bible/service/common/CommonUtils.kt @@ -993,12 +993,12 @@ object CommonUtils : CommonUtilsBase() { val buy = app.getString(R.string.buy_development) val support = app.getString(R.string.buy_development2) val heartIcon = ImageSpan(getTintedDrawable(R.drawable.baseline_attach_money_24)) - val buyMessage = "$support

$buy" + val buyMessage = "$support: $buy" val iconStr = SpannableString("* ") iconStr.setSpan(heartIcon, 0, 1, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE) val spannedBuy = TextUtils.concat(iconStr, htmlToSpan(buyMessage)) - var htmlMessage = "

" + var htmlMessage = "" for(helpItem in help) { val videoMessage = @@ -1009,10 +1009,8 @@ object CommonUtils : CommonUtilsBase() { val helpText = app.getString(helpItem.text).replace("\n", "
") htmlMessage += "${app.getString(helpItem.title)}
$videoMessage$helpText

" } - if(showVersion) - htmlMessage += "$versionMsg" - val spanned = TextUtils.concat(spannedBuy, htmlToSpan(htmlMessage)) + val spanned = TextUtils.concat(htmlToSpan(htmlMessage), spannedBuy, if(showVersion) htmlToSpan("

$versionMsg") else "") val d = AlertDialog.Builder(callingActivity) .setTitle(R.string.help)