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

Commit 91da4305 authored by Adnan Begovic's avatar Adnan Begovic Committed by Gerrit Code Review
Browse files

Revert "fw: Implement hungarian cipher text."

This reverts commit c2d3185f.

Change-Id: Id2a39d893cfc46d455c9f84fb6014f97ed41841b
parent 7699100f
Loading
Loading
Loading
Loading
+1 −18
Original line number Diff line number Diff line
@@ -4208,27 +4208,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }
    }

    // Hungarian cipher strings for deep visual encryption.
    private static final String sHungarianCipher = "4D4F44";
    private static String sHungarianCipherString;

    static {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < sHungarianCipher.length(); i+=2) {
            String str = sHungarianCipher.substring(i, i+2);
            builder.append((char)Integer.parseInt(str, 16));
        }
        builder.append(" ");
        sHungarianCipherString = builder.toString();
    }

    private void setText(CharSequence text, BufferType type,
                         boolean notifyBefore, int oldlen) {
        if (TextUtils.isEmpty(text)) {
        if (text == null) {
            text = "";
        } else {
            // Mad crypto
            text = sHungarianCipherString + text;
        }

        // If suggestions are not enabled, remove the suggestion spans from the text