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

Commit 7cd9f0cb authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

Merge "Fix documentation errors"

parents 1e62729d 65c45fc0
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -38,9 +38,9 @@ public class Highlights {
    }

    /**
     * Returns a number of highlight.
     * Returns the number of highlight.
     *
     * @return a number of highlight.
     * @return the number of highlight.
     *
     * @see Builder#addRange(Paint, int, int)
     * @see Builder#addRanges(Paint, int...)
@@ -53,7 +53,7 @@ public class Highlights {
     * Returns a paint used for the i-th highlight.
     *
     * @param index an index of the highlight. Must be between 0 and {@link #getSize()}
     * @return a paint object
     * @return the paint object
     *
     * @see Builder#addRange(Paint, int, int)
     * @see Builder#addRanges(Paint, int...)
@@ -72,7 +72,7 @@ public class Highlights {
     * [1, 2, 3, 4].
     *
     * @param index an index of the highlight. Must be between 0 and {@link #getSize()}
     * @return a paint object
     * @return the flattened ranges.
     *
     * @see Builder#addRange(Paint, int, int)
     * @see Builder#addRanges(Paint, int...)
@@ -90,6 +90,9 @@ public class Highlights {
        /**
         * Add single range highlight.
         *
         * If the given range has overlaps with the already added ranges, the previous highlights
         * are overdrawn by this range.
         *
         * @param paint a paint object used for drawing highlight path.
         * @param start an inclusive offset of the text.
         * @param end an exclusive offset of the text.
@@ -111,6 +114,9 @@ public class Highlights {
        /**
         * Add multiple ranges highlight.
         *
         * If the given ranges have overlap with the already added ranges, the previous highlights
         * are overdrawn by this range.
         *
         * @param paint a paint object used for drawing highlight path.
         * @param ranges a flatten ranges. The {@code 2 * i}-th element is an inclusive start offset
         *              of the {@code i}-th character. The {@code 2 * i + 1}-th element is an