From feb5cd7f52f8f6f0cd577579eadfa3a582a9a0a2 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 12 Sep 2024 04:22:18 +0700 Subject: [PATCH] remove optimization --- .../com/expensify/livemarkdown/MarkdownTextWatcher.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/android/src/main/java/com/expensify/livemarkdown/MarkdownTextWatcher.java b/android/src/main/java/com/expensify/livemarkdown/MarkdownTextWatcher.java index 5d161898..23b215a2 100644 --- a/android/src/main/java/com/expensify/livemarkdown/MarkdownTextWatcher.java +++ b/android/src/main/java/com/expensify/livemarkdown/MarkdownTextWatcher.java @@ -9,9 +9,6 @@ public class MarkdownTextWatcher implements TextWatcher { private final MarkdownUtils mMarkdownUtils; - private boolean mShouldSkip = false; - private String mPreviousText; - public MarkdownTextWatcher(@NonNull MarkdownUtils markdownUtils) { mMarkdownUtils = markdownUtils; } @@ -29,12 +26,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) { @Override public void afterTextChanged(Editable editable) { if (editable instanceof SpannableStringBuilder) { - String currentText = editable.toString(); - if (currentText.equals(mPreviousText)) { - return; - } mMarkdownUtils.applyMarkdownFormatting((SpannableStringBuilder) editable); - mPreviousText = currentText; } } }