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

Commit f408f362 authored by Siyamed Sinir's avatar Siyamed Sinir
Browse files

Add NonNull annotation to getTextDirectionHeuristics

Test: None
Bug: 126700617
Change-Id: Idaf5cc0237cd82c5d317a66d9e22fe7d2ac41f3d
parent 5a95250b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57332,7 +57332,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;