aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-07 20:22:26 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-07 20:22:26 +0100
commit93d11b3c99be49fdd2faa0e90db45b3360720e6a (patch)
tree06c9b8426fd0ac66df9e8fea1404f985d3abd278 /src/eu
parent7738bfd0727e41e8211532c8fef0876169837e9e (diff)
made untrust certificate warning more beautified
Diffstat (limited to 'src/eu')
-rw-r--r--src/eu/siacs/conversations/ui/ManageAccountActivity.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/eu/siacs/conversations/ui/ManageAccountActivity.java
index 91314686..9e71edb1 100644
--- a/src/eu/siacs/conversations/ui/ManageAccountActivity.java
+++ b/src/eu/siacs/conversations/ui/ManageAccountActivity.java
@@ -77,10 +77,16 @@ public class ManageAccountActivity extends XmppActivity {
TextView hint = (TextView) view.findViewById(R.id.hint);
StringBuilder humanReadableSha = new StringBuilder();
humanReadableSha.append(fingerprint);
- for(int i = 2; i < 58; i += 3) {
- humanReadableSha.insert(i, ":");
+ for(int i = 2; i < 59; i += 3) {
+ Log.d("gultsch","insert into "+i);
+ if ((i==14)||(i==29)||(i==44)) {
+ humanReadableSha.insert(i, "\n");
+ } else {
+ humanReadableSha.insert(i, ":");
+ }
+
}
- hint.setText(account.getServer()+" presented you with an unstrusted, possible self signed, certificate.\nThe SHA1 fingerprint is");
+ hint.setText(getString(R.string.untrusted_cert_hint,account.getServer()));
sha.setText(humanReadableSha.toString());
builder.setView(view);
//builder.setMessage(server+" presented you with an unstrusted, possible self signed, certificate. The SHA1 fingerprint is "+fingerprint+" Do not connect unless you know exactly what you are doing");