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

Commit e8306fed authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add NonNull annotation to getTextDirectionHeuristics"

parents e33fbee4 f408f362
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57329,7 +57329,7 @@ package android.widget {
    method @NonNull public android.view.textclassifier.TextClassifier getTextClassifier();
    method public final android.content.res.ColorStateList getTextColors();
    method @Nullable public android.graphics.drawable.Drawable getTextCursorDrawable();
    method public android.text.TextDirectionHeuristic getTextDirectionHeuristic();
    method @NonNull public android.text.TextDirectionHeuristic getTextDirectionHeuristic();
    method @NonNull public java.util.Locale getTextLocale();
    method @NonNull @Size(min=1) public android.os.LocaleList getTextLocales();
    method @NonNull public android.text.PrecomputedText.Params getTextMetricsParams();
+1 −1
Original line number Diff line number Diff line
@@ -12744,7 +12744,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * 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.
     */
    public TextDirectionHeuristic getTextDirectionHeuristic() {
    public @NonNull TextDirectionHeuristic getTextDirectionHeuristic() {
        if (hasPasswordTransformationMethod()) {
            // passwords fields should be LTR
            return TextDirectionHeuristics.LTR;