[tor-commits] [orbot/master] Formatted HTML string res in v2 hosted onions dialog

n8fr8 at torproject.org n8fr8 at torproject.org
Wed Dec 22 21:55:07 UTC 2021


commit 6515ac2e9da06a4c8d484f282ba161778d36ef4b
Author: bim <dsnake at protonmail.com>
Date:   Mon Apr 12 10:53:49 2021 -0400

    Formatted HTML string res in v2 hosted onions dialog
---
 .../torproject/android/ui/hiddenservices/dialogs/HSActionsDialog.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/src/main/java/org/torproject/android/ui/hiddenservices/dialogs/HSActionsDialog.java b/app/src/main/java/org/torproject/android/ui/hiddenservices/dialogs/HSActionsDialog.java
index 1d2e7844..5a7165fe 100644
--- a/app/src/main/java/org/torproject/android/ui/hiddenservices/dialogs/HSActionsDialog.java
+++ b/app/src/main/java/org/torproject/android/ui/hiddenservices/dialogs/HSActionsDialog.java
@@ -6,6 +6,7 @@ import android.content.Context;
 import android.content.Intent;
 import android.net.Uri;
 import android.os.Bundle;
+import android.text.Html;
 import android.widget.Toast;
 
 import androidx.annotation.NonNull;
@@ -33,7 +34,7 @@ public class HSActionsDialog extends DialogFragment {
                 .setItems(new CharSequence[]{
                         getString(R.string.copy_address_to_clipboard),
                         getString(R.string.show_auth_cookie),
-                        getString(R.string.backup_service),
+                        Html.fromHtml(getString(R.string.backup_service)),
                         getString(R.string.delete_service)}, null)
                 .setNegativeButton(android.R.string.cancel, (dialog, which) -> dialog.dismiss())
                 .setTitle(R.string.hidden_services)





More information about the tor-commits mailing list