Skip to content

Commit

Permalink
[CollapsingToolbarLayout] Added experimental setRtlTextDirectionHeuri…
Browse files Browse the repository at this point in the history
…sticsEnabled() method

PiperOrigin-RevId: 377044268
(cherry picked from commit ae82585)
  • Loading branch information
dsn5ft committed Jun 2, 2021
1 parent bab907f commit 5af3643
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,24 @@ public int getHyphenationFrequency() {
return collapsingTextHelper.getHyphenationFrequency();
}

/**
* Sets whether {@code TextDirectionHeuristics} should be used to determine whether the title text
* is RTL. Experimental Feature.
*/
@RestrictTo(LIBRARY_GROUP)
public void setRtlTextDirectionHeuristicsEnabled(boolean rtlTextDirectionHeuristicsEnabled) {
collapsingTextHelper.setRtlTextDirectionHeuristicsEnabled(rtlTextDirectionHeuristicsEnabled);
}

/**
* Gets whether {@code TextDirectionHeuristics} should be used to determine whether the title text
* is RTL. Experimental Feature.
*/
@RestrictTo(LIBRARY_GROUP)
public boolean isRtlTextDirectionHeuristicsEnabled() {
return collapsingTextHelper.isRtlTextDirectionHeuristicsEnabled();
}

/**
* Set the amount of visible height in pixels used to define when to trigger a scrim visibility
* change.
Expand Down

0 comments on commit 5af3643

Please sign in to comment.