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

Commit c602e574 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Fix TextViewTest.testHyphenationWidth

The root cause is the wrong expectation of getHyphen value.

Bug: 70160893
Test: bit FrameworksCoreTests:android.widget.TextViewTest#testHyphenationWidth

Change-Id: I9354cf322c003c4629ae88dd9b910c4043a86cc1
parent ca1265e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public class TextViewTest {
        int lineCount = layout.getLineCount();
        boolean hyphenationHappend = false;
        for (int i = 0; i < lineCount; ++i) {
            if (layout.getHyphen(i) != 1) {
            if (layout.getHyphen(i) == 0) {
                continue;  // Hyphantion does not happen.
            }
            hyphenationHappend = true;