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

Commit e004b868 authored by Dmitry Tsyganyuk's avatar Dmitry Tsyganyuk
Browse files

Fix NullException in QwertyKeyListener.KeyDown



Extending null protection for view to "c == i" case in addition to
"c == Character.toUpperCase(i)" case that helped to fix some force closures.
Seems as typo in original implementation.

Change-Id: Ibaa5aea95c5c8cdc8ac981fe0d1dad313e3e692f
Signed-off-by: default avatarDmitry Tsyganyuk <fdt017@motorola.com>
parent 13ab2c9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ public class QwertyKeyListener extends BaseKeyListener {
            if (count > 0 && selStart == selEnd && selStart > 0) {
                char c = content.charAt(selStart - 1);

                if (c == i || c == Character.toUpperCase(i) && view != null) {
                if ((c == i || c == Character.toUpperCase(i)) && view != null) {
                    if (showCharacterPicker(view, content, c, false, count)) {
                        resetMetaState(content);
                        return true;