From 488767550e7d5fd3b322adaadf19802122dacc7b Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Wed, 13 May 2015 11:35:49 -0700 Subject: [PATCH] make ComposeText extend AppCompatEditText Fixes #3134 Closes #3160 // FREEBIE --- .../securesms/components/ComposeText.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/org/thoughtcrime/securesms/components/ComposeText.java b/src/org/thoughtcrime/securesms/components/ComposeText.java index 8327800356..f72485423b 100644 --- a/src/org/thoughtcrime/securesms/components/ComposeText.java +++ b/src/org/thoughtcrime/securesms/components/ComposeText.java @@ -1,17 +1,15 @@ package org.thoughtcrime.securesms.components; -import android.annotation.TargetApi; import android.content.Context; -import android.os.Build; import android.support.annotation.NonNull; +import android.support.v7.widget.AppCompatEditText; import android.text.Spannable; import android.text.SpannableString; import android.text.TextUtils; import android.text.style.RelativeSizeSpan; import android.util.AttributeSet; -import android.widget.EditText; -public class ComposeText extends EditText { +public class ComposeText extends AppCompatEditText { public ComposeText(Context context) { super(context); } @@ -24,11 +22,6 @@ public class ComposeText extends EditText { super(context, attrs, defStyleAttr); } - @TargetApi(Build.VERSION_CODES.LOLLIPOP) - public ComposeText(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { - super(context, attrs, defStyleAttr, defStyleRes); - } - public void setHint(@NonNull String hint) { SpannableString span = new SpannableString(hint); span.setSpan(new RelativeSizeSpan(0.8f), 0, hint.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);