Fix duplicate clipboard popup.

Co-authored-by: Leo Heitmann Ruiz <leo@heitmannruiz.org>

Closes signalapp/Signal-Android#14871
This commit is contained in:
Paul Ohlhauser
2026-07-07 22:01:36 +02:00
committed by Alex Hart
parent b55a8dc98e
commit 80f6795665
@@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.util;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.text.TextPaint;
import android.text.style.URLSpan;
import android.view.View;
@@ -38,7 +39,9 @@ public class LongClickCopySpan extends URLSpan {
Context context = widget.getContext();
String preparedUrl = prepareUrl(getURL());
copyUrl(context, preparedUrl);
Toast.makeText(context, context.getString(R.string.ConversationItem_copied_text, preparedUrl), Toast.LENGTH_SHORT).show();
if (Build.VERSION.SDK_INT <= 32) {
Toast.makeText(context, context.getString(R.string.ConversationItem_copied_text, preparedUrl), Toast.LENGTH_SHORT).show();
}
}
@Override