mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Fix split second spoiler reveal when quoting a message with a spoiler.
This commit is contained in:
committed by
Greyson Parrelli
parent
131f9c4bc9
commit
f2846efd2c
@@ -1,6 +1,7 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.text.TextPaint;
|
||||
import android.text.style.URLSpan;
|
||||
import android.view.View;
|
||||
@@ -41,6 +42,10 @@ public class LongClickCopySpan extends URLSpan {
|
||||
|
||||
@Override
|
||||
public void updateDrawState(@NonNull TextPaint ds) {
|
||||
if (ds.getColor() == Color.TRANSPARENT) {
|
||||
return;
|
||||
}
|
||||
|
||||
super.updateDrawState(ds);
|
||||
if (textColor != null) {
|
||||
ds.setColor(textColor);
|
||||
|
||||
Reference in New Issue
Block a user