From 14022bd00418e4856ecc3f8bf8be558fdaa458ff Mon Sep 17 00:00:00 2001 From: k0shk0sh Date: Thu, 26 Dec 2019 09:50:59 +0100 Subject: [PATCH] remove unsubscribe btn --- .../com/fastaccess/ui/widgets/FontTextView.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/fastaccess/ui/widgets/FontTextView.java b/app/src/main/java/com/fastaccess/ui/widgets/FontTextView.java index 1eecba24..fd52772d 100644 --- a/app/src/main/java/com/fastaccess/ui/widgets/FontTextView.java +++ b/app/src/main/java/com/fastaccess/ui/widgets/FontTextView.java @@ -6,12 +6,14 @@ import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.graphics.drawable.ScaleDrawable; import android.os.Parcelable; + import androidx.annotation.ColorInt; import androidx.annotation.DrawableRes; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.content.ContextCompat; import androidx.appcompat.widget.AppCompatTextView; + import android.util.AttributeSet; import android.view.Gravity; @@ -59,12 +61,18 @@ public class FontTextView extends AppCompatTextView { this.selected = selected; } - @SuppressLint("SetTextI18n") public void setText(CharSequence text, BufferType type) { + @Override public void setTextCursorDrawable(@Nullable Drawable textCursorDrawable) { try { - super.setText(text, type); + super.setTextCursorDrawable(textCursorDrawable); + } catch (Exception e) { + Crashlytics.logException(e); + } + } + + @Override public void setTextCursorDrawable(int textCursorDrawable) { + try { + super.setTextCursorDrawable(textCursorDrawable); } catch (Exception e) { - setText("I tried, but your OEM just sucks because they modify the framework components and therefore causing the app to crash!" + "" + - ".\nFastHub"); Crashlytics.logException(e); } }