From 270c777724fad4e1b6a9bab91081e9f7890bce0d Mon Sep 17 00:00:00 2001 From: iamporus Date: Mon, 17 Jun 2019 11:01:59 +0530 Subject: [PATCH] Added getter for original text. --- .../java/com/prush/typedtextview/TypedTextView.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/typedtextview/src/main/java/com/prush/typedtextview/TypedTextView.java b/typedtextview/src/main/java/com/prush/typedtextview/TypedTextView.java index f3b6f6b..b1b9169 100644 --- a/typedtextview/src/main/java/com/prush/typedtextview/TypedTextView.java +++ b/typedtextview/src/main/java/com/prush/typedtextview/TypedTextView.java @@ -278,6 +278,17 @@ public void setTypedText( @StringRes final int resId ) setTypedText( text ); } + /** + * Get the text to be typed. + * + * @return CharSequence text being/to be typed by the view. + */ + @Override + public CharSequence getText() + { + return mText; + } + /** * Set text to be typed with the TypeWriter effect. *