mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 03:24:52 +02:00
19 lines
421 B
Java
19 lines
421 B
Java
package eu.faircode.email;
|
|
|
|
import android.text.TextPaint;
|
|
import android.text.style.CharacterStyle;
|
|
import android.text.style.UpdateAppearance;
|
|
|
|
public class HighlightSpan extends CharacterStyle implements UpdateAppearance {
|
|
private int color;
|
|
|
|
public HighlightSpan(int color) {
|
|
this.color = color;
|
|
}
|
|
|
|
@Override
|
|
public void updateDrawState(TextPaint tp) {
|
|
tp.bgColor = color;
|
|
}
|
|
}
|