Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71ed07ac authored by tibbi's avatar tibbi
Browse files

use CDATA at purchase_thank_you string to avoid underlining the first space

parent 8501596f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ package com.simplemobiletools.commons.dialogs

import android.app.Activity
import android.support.v7.app.AlertDialog
import android.text.Html
import android.text.method.LinkMovementMethod
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.extensions.launchViewIntent
@@ -11,7 +12,8 @@ import kotlinx.android.synthetic.main.dialog_purchase_thank_you.view.*
class PurchaseThankYouDialog(val activity: Activity) {
    init {
        val view = activity.layoutInflater.inflate(R.layout.dialog_purchase_thank_you, null).apply {
            install_thank_you.movementMethod = LinkMovementMethod.getInstance()
            purchase_thank_you.text = Html.fromHtml(activity.getString(R.string.purchase_thank_you))
            purchase_thank_you.movementMethod = LinkMovementMethod.getInstance()
        }

        AlertDialog.Builder(activity)
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<com.simplemobiletools.commons.views.MyTextView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/install_thank_you"
    android:id="@+id/purchase_thank_you"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:lineSpacingExtra="3dp"
+5 −1
Original line number Diff line number Diff line
@@ -128,7 +128,11 @@
    <string name="save_before_closing">Máte neuložené změny. Uložit před zavřením?</string>
    <string name="apply_to_all_apps">Apply colors to all Simple Apps</string>
    <string name="share_colors_success">Colors updated successfully. A new Theme called \'Shared\' has been added, please use that for updating all app colors in the future.</string>
    <string name="purchase_thank_you">Please purchase <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.thankyou">Simple Thank You</a> to unlock this function and support the development. Thanks!</string>
    <string name="purchase_thank_you">
        <![CDATA[
            Please purchase <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.thankyou">Simple Thank You</a> to unlock this function and support the development. Thanks!
        ]]>
    </string>

    <!-- Themes -->
    <string name="light_theme">Světlý</string>
+5 −1
Original line number Diff line number Diff line
@@ -128,7 +128,11 @@
    <string name="save_before_closing">You have unsaved changes. Save before exit?</string>
    <string name="apply_to_all_apps">Apply colors to all Simple Apps</string>
    <string name="share_colors_success">Colors updated successfully. A new Theme called \'Shared\' has been added, please use that for updating all app colors in the future.</string>
    <string name="purchase_thank_you">Please purchase <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.thankyou">Simple Thank You</a> to unlock this function and support the development. Thanks!</string>
    <string name="purchase_thank_you">
        <![CDATA[
            Please purchase <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.thankyou">Simple Thank You</a> to unlock this function and support the development. Thanks!
        ]]>
    </string>

    <!-- Themes -->
    <string name="light_theme">Light</string>
+5 −1
Original line number Diff line number Diff line
@@ -128,7 +128,11 @@
    <string name="save_before_closing">Du hast ungespeicherte Änderungen. Speichern vorm Beenden?</string>
    <string name="apply_to_all_apps">Farben bei alle schlichten Apps anwenden</string>
    <string name="share_colors_success">Farben erfolgreich aktualisiert. Ein neues Thema \'Shared\' wurde hinzugefügt, bitte verwende dieses um für alle Apps die Farben zu ändern.</string>
    <string name="purchase_thank_you">Bitte kaufe <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.thankyou">Simple Thank You</a> um diese Funktion freizuschalten und die Entwicklung zu unterstützen. Danke!</string>
    <string name="purchase_thank_you">
        <![CDATA[
            Bitte kaufe <a href="https://play.google.com/store/apps/details?id=com.simplemobiletools.thankyou">Simple Thank You</a> um diese Funktion freizuschalten und die Entwicklung zu unterstützen. Danke!
        ]]>
    </string>

    <!-- Themes -->
    <string name="light_theme">Hell</string>
Loading