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

Commit 176ee3d0 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Bug 5037953: Fix NPE in bringPointIntoView

Change-Id: If711f65de1a70ac9132b0b853a9f336ec56355b8
parent 4d34ddc7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6618,6 +6618,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    public boolean bringPointIntoView(int offset) {
        boolean changed = false;

        if (mLayout == null) return changed;

        int line = mLayout.getLineForOffset(offset);

        // FIXME: Is it okay to truncate this, or should we round?