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

Commit 5acc379c authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix bug #7457897 Error icons are not shown in credit card entry form

- fix regression: the error icon was no more showing is the widget was not focused

Change-Id: I24cc00a0cb79d38e365d413f9820b5a6981de4f4
parent 18f95189
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -291,6 +291,7 @@ public class Editor {
        mErrorWasChanged = true;

        if (mError == null) {
            setErrorIcon(null);
            if (mErrorPopup != null) {
                if (mErrorPopup.isShowing()) {
                    mErrorPopup.dismiss();
@@ -299,10 +300,11 @@ public class Editor {
                mErrorPopup = null;
            }

            setErrorIcon(null);
        } else if (mTextView.isFocused()) {
            showError();
        } else {
            setErrorIcon(icon);
            if (mTextView.isFocused()) {
                showError();
            }
        }
    }

@@ -321,8 +323,6 @@ public class Editor {
            if (mErrorPopup.isShowing()) {
                mErrorPopup.dismiss();
            }

            setErrorIcon(null);
        }

        mShowErrorAfterAttach = false;