1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2025-09-10 10:49:42 +02:00

Fix drawable lint issues

This commit is contained in:
Gregor Santner 2017-10-29 15:33:59 +01:00
parent a96e91aefb
commit d1d2d7b4d1
22 changed files with 805 additions and 408 deletions

View file

@ -20,12 +20,12 @@ package com.github.dfa.diaspora_android.ui;
import android.annotation.TargetApi;
import android.content.Context;
import android.support.v7.widget.AppCompatTextView;
import android.text.Html;
import android.text.SpannableString;
import android.text.util.Linkify;
import android.util.AttributeSet;
import android.util.Patterns;
import android.widget.TextView;
import com.github.dfa.diaspora_android.activity.MainActivity;
@ -38,7 +38,7 @@ import java.util.regex.Pattern;
* Hashtags open the MainActivity, load the new-post site of the selected pod and insert the
* hashtag into the post editor. See data/HashtagContentProvider.
*/
public class HtmlTextView extends TextView {
public class HtmlTextView extends AppCompatTextView {
public HtmlTextView(Context context) {
super(context);
@ -55,12 +55,6 @@ public class HtmlTextView extends TextView {
init();
}
@TargetApi(21)
public HtmlTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
init();
}
/**
* Linkify, format markdown and escape the displayed message.
*/