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

Commit 19f1faa3 authored by Andrei Stingaceanu's avatar Andrei Stingaceanu Committed by Android (Google) Code Review
Browse files

Merge "Text processing - stop showing an empty toast."

parents 0d703f74 6154b090
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1460,10 +1460,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            if (isTextEditable()) {
                replaceSelectionWithText(result);
            } else {
                if (result.length() > 0) {
                    Toast.makeText(getContext(), String.valueOf(result), Toast.LENGTH_LONG).show();
                }
            }
        }
    }

    private void setTypefaceFromAttrs(String familyName, int typefaceIndex, int styleIndex) {
        Typeface tf = null;