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

Commit bcb11acc authored by Nader Jawad's avatar Nader Jawad Committed by Gerrit Code Review
Browse files

Merge "Fix NullPointerException in TextView#canPasteAsPlainText" into main

parents 15a2601c b74647f3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -13355,6 +13355,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        final ClipDescription description =
                getClipboardManagerForUser().getPrimaryClipDescription();
        if (description == null) {
            return false;
        }
        final boolean isPlainType = description.hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN);
        return (isPlainType && description.isStyledText())
                || description.hasMimeType(ClipDescription.MIMETYPE_TEXT_HTML);