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

Commit 2535f534 authored by Siyamed Sinir's avatar Siyamed Sinir Committed by Android (Google) Code Review
Browse files

Merge "Make TextView.getTextDirectionHeuristic public"

parents 471bb616 a1e851c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -55492,6 +55492,7 @@ package android.widget {
    method public java.lang.CharSequence getText();
    method public android.view.textclassifier.TextClassifier getTextClassifier();
    method public final android.content.res.ColorStateList getTextColors();
    method public android.text.TextDirectionHeuristic getTextDirectionHeuristic();
    method public java.util.Locale getTextLocale();
    method public android.os.LocaleList getTextLocales();
    method public android.text.PrecomputedText.Params getTextMetricsParams();
+6 −6
Original line number Diff line number Diff line
@@ -12268,13 +12268,13 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    }

    /**
     * Returns the current {@link TextDirectionHeuristic}.
     *
     * @return the current {@link TextDirectionHeuristic}.
     * @hide
     * Returns resolved {@link TextDirectionHeuristic} that will be used for text layout.
     * The {@link TextDirectionHeuristic} that is used by TextView is only available after
     * {@link #getTextDirection()} and {@link #getLayoutDirection()} is resolved. Therefore the
     * return value may not be the same as the one TextView uses if the View's layout direction is
     * not resolved or detached from parent root view.
     */
    @UnsupportedAppUsage
    protected TextDirectionHeuristic getTextDirectionHeuristic() {
    public TextDirectionHeuristic getTextDirectionHeuristic() {
        if (hasPasswordTransformationMethod()) {
            // passwords fields should be LTR
            return TextDirectionHeuristics.LTR;