mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Fix revealing spoilers in text stories.
This commit is contained in:
@@ -16,6 +16,7 @@ import androidx.core.content.ContextCompat;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.components.spoiler.SpoilerAnnotation;
|
||||
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
@@ -116,6 +117,11 @@ public class LongClickMovementMethod extends LinkMovementMethod {
|
||||
return super.onTouchEvent(widget, buffer, event);
|
||||
}
|
||||
|
||||
/** This signature is available in the base class and can lead to the wrong instance being returned. */
|
||||
public static LongClickMovementMethod getInstance() {
|
||||
return getInstance(ApplicationDependencies.getApplication());
|
||||
}
|
||||
|
||||
public static LongClickMovementMethod getInstance(Context context) {
|
||||
if (sInstance == null) {
|
||||
sInstance = new LongClickMovementMethod(context.getApplicationContext());
|
||||
|
||||
Reference in New Issue
Block a user