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

Commit b6b15dca authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "TextLine cache is used, even for long lines of text." into honeycomb

parents d14239a2 f902d7bc
Loading
Loading
Loading
Loading
+5 −7
Original line number Original line Diff line number Diff line
@@ -90,7 +90,6 @@ class TextLine {
        tl.mText = null;
        tl.mText = null;
        tl.mPaint = null;
        tl.mPaint = null;
        tl.mDirections = null;
        tl.mDirections = null;
        if (tl.mLen < 250) {
        synchronized(cached) {
        synchronized(cached) {
            for (int i = 0; i < cached.length; ++i) {
            for (int i = 0; i < cached.length; ++i) {
                if (cached[i] == null) {
                if (cached[i] == null) {
@@ -99,7 +98,6 @@ class TextLine {
                }
                }
            }
            }
        }
        }
        }
        return null;
        return null;
    }
    }