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

Commit 2dc6ebbe authored by Roozbeh Pournader's avatar Roozbeh Pournader Committed by Android (Google) Code Review
Browse files

Merge "Fix default value of stereoReset() in the documentation." into mnc-dev

parents 437eb6ce 007262e0
Loading
Loading
Loading
Loading
+8 −7
Original line number Original line Diff line number Diff line
@@ -173,7 +173,7 @@ public final class BidiFormatter {


        /**
        /**
         * Specifies whether the BidiFormatter to be built should also "reset" directionality before
         * Specifies whether the BidiFormatter to be built should also "reset" directionality before
         * a string being bidi-wrapped, not just after it. The default is false.
         * a string being bidi-wrapped, not just after it. The default is true.
         */
         */
        public Builder stereoReset(boolean stereoReset) {
        public Builder stereoReset(boolean stereoReset) {
            if (stereoReset) {
            if (stereoReset) {
@@ -363,12 +363,13 @@ public final class BidiFormatter {
     * If {@code isolate}, directionally isolates the string so that it does not garble its
     * If {@code isolate}, directionally isolates the string so that it does not garble its
     * surroundings. Currently, this is done by "resetting" the directionality after the string by
     * surroundings. Currently, this is done by "resetting" the directionality after the string by
     * appending a trailing Unicode bidi mark matching the context directionality (LRM or RLM) when
     * appending a trailing Unicode bidi mark matching the context directionality (LRM or RLM) when
     * either the overall directionality or the exit directionality of the string is opposite to that
     * either the overall directionality or the exit directionality of the string is opposite to
     * of the context. If the formatter was built using {@link Builder#stereoReset(boolean)} and
     * that of the context. Unless the formatter was built using
     * passing "true" as an argument, also prepends a Unicode bidi mark matching the context
     * {@link Builder#stereoReset(boolean)} with a {@code false} argument, also prepends a Unicode
     * directionality when either the overall directionality or the entry directionality of the
     * bidi mark matching the context directionality when either the overall directionality or the
     * string is opposite to that of the context. Note that as opposed to the overall
     * entry directionality of the string is opposite to that of the context. Note that as opposed
     * directionality, the entry and exit directionalities are determined from the string itself.
     * to the overall directionality, the entry and exit directionalities are determined from the
     * string itself.
     * <p>
     * <p>
     * Does *not* do HTML-escaping.
     * Does *not* do HTML-escaping.
     *
     *