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

Commit df3cd01d authored by Steve Kondik's avatar Steve Kondik
Browse files

Fix NPE in TextView

parent 0a17f45e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -953,7 +953,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        if (!enabled) {
            // Hide the soft input if the currently active TextView is disabled
            InputMethodManager imm = InputMethodManager.peekInstance();
            if (imm.isActive(this)) {
            if (imm != null && imm.isActive(this)) {
                imm.hideSoftInputFromWindow(getWindowToken(), 0);
            }
        }