diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-11-11 20:27:44 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-11-11 20:27:44 +0100 |
commit | 42c3c2778498964189fafd6adde31d07bbff0d5d (patch) | |
tree | 4c3bb568510725db0e083cfff112bd45f8d678d3 /src/main/java/de/pixart/messenger/ui | |
parent | af0610c7366bdc266dde670d99eddb0f942d9be0 (diff) |
fix some lint errors
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/forms/FormFieldWrapper.java | 2 | ||||
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/forms/FormFieldWrapper.java b/src/main/java/de/pixart/messenger/ui/forms/FormFieldWrapper.java index 0dfd86327..df41d5884 100644 --- a/src/main/java/de/pixart/messenger/ui/forms/FormFieldWrapper.java +++ b/src/main/java/de/pixart/messenger/ui/forms/FormFieldWrapper.java @@ -58,7 +58,7 @@ public abstract class FormFieldWrapper { int start = label.length(); int end = label.length() + 2; spannableString.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), start, end, 0); - spannableString.setSpan(new ForegroundColorSpan(StyledAttributes.getColor(context, R.color.accent)), start, end, 0); + spannableString.setSpan(new ForegroundColorSpan(StyledAttributes.getColor(context, R.attr.colorAccent)), start, end, 0); } return spannableString; } diff --git a/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java b/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java index 396a71348..9d7a5dfb8 100644 --- a/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java +++ b/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java @@ -1,5 +1,6 @@ package de.pixart.messenger.ui.widget; +import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.content.ClipData; import android.content.ClipboardManager; @@ -8,6 +9,7 @@ import android.os.Build; import android.util.AttributeSet; import android.widget.TextView; +@SuppressLint("AppCompatCustomView") public class CopyTextView extends TextView { public CopyTextView(Context context) { @@ -19,13 +21,13 @@ public class CopyTextView extends TextView { } public CopyTextView(Context context, AttributeSet attrs, int defStyleAttr) { - super(context, attrs); //, defStyleAttr); + super(context, attrs, defStyleAttr); } @SuppressWarnings("unused") @TargetApi(Build.VERSION_CODES.LOLLIPOP) public CopyTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { - super(context, attrs); //, defStyleAttr); //, defStyleRes); + super(context, attrs, defStyleAttr, defStyleRes); } public interface CopyHandler { |