fix some lint errors

This commit is contained in:
Christian Schneppe 2018-11-11 20:27:44 +01:00
parent af0610c736
commit 42c3c27784
3 changed files with 6 additions and 4 deletions

View file

@ -57,7 +57,7 @@ public class ExportLogsService extends XmppConnectionService {
final SharedPreferences ReadableLogs = PreferenceManager.getDefaultSharedPreferences(this);
ReadableLogsEnabled = ReadableLogs.getBoolean("export_plain_text_logs", getResources().getBoolean(R.bool.plain_text_logs));
pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "ExportLogsService");
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, Config.LOGTAG + ": ExportLogsService");
this.startForeground(NotificationService.FOREGROUND_NOTIFICATION_ID, getNotificationService().exportLogsNotification());
}

View file

@ -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;
}

View file

@ -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 {