From 3cb7d2169d6fb1c0c741b69f365c747afe70e8ec Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 4 Dec 2020 13:40:10 +1100 Subject: [PATCH] Fix tap jacking bug Changes from 46452977f --- .../securesms/conversation/ConversationItem.java | 12 +++++------- .../main/res/layout-sw400dp/activity_register.xml | 4 ++-- app/src/main/res/layout-sw400dp/activity_seed.xml | 6 +++--- .../res/layout-sw400dp/fragment_enter_public_key.xml | 6 +++--- app/src/main/res/layout/activity_register.xml | 4 ++-- app/src/main/res/layout/activity_seed.xml | 6 +++--- app/src/main/res/layout/dialog_seed.xml | 4 ++-- .../main/res/layout/fragment_enter_public_key.xml | 6 +++--- 8 files changed, 23 insertions(+), 25 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java index e3f0b014c8..6ebd777d64 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java @@ -53,13 +53,15 @@ import androidx.appcompat.app.AlertDialog; import com.annimon.stream.Stream; +import org.session.libsignal.libsignal.util.guava.Optional; +import org.session.libsignal.service.loki.api.opengroups.PublicChat; +import org.session.libsignal.service.loki.api.opengroups.PublicChatAPI; import org.thoughtcrime.securesms.ApplicationContext; import org.thoughtcrime.securesms.BindableConversationItem; import org.thoughtcrime.securesms.MediaPreviewActivity; import org.thoughtcrime.securesms.MessageDetailsActivity; import org.thoughtcrime.securesms.attachments.DatabaseAttachment; import org.thoughtcrime.securesms.components.ConversationItemAlertView; -import org.thoughtcrime.securesms.loki.views.MessageAudioView; import org.thoughtcrime.securesms.components.ConversationItemFooter; import org.thoughtcrime.securesms.components.ConversationItemThumbnail; import org.thoughtcrime.securesms.components.DocumentView; @@ -72,7 +74,6 @@ import org.thoughtcrime.securesms.database.DatabaseFactory; import org.thoughtcrime.securesms.database.MmsDatabase; import org.thoughtcrime.securesms.database.MmsSmsDatabase; import org.thoughtcrime.securesms.database.SmsDatabase; -import org.thoughtcrime.securesms.database.documents.IdentityKeyMismatch; import org.thoughtcrime.securesms.database.model.MediaMmsMessageRecord; import org.thoughtcrime.securesms.database.model.MessageRecord; import org.thoughtcrime.securesms.database.model.MmsMessageRecord; @@ -85,8 +86,8 @@ import org.thoughtcrime.securesms.linkpreview.LinkPreview; import org.thoughtcrime.securesms.linkpreview.LinkPreviewUtil; import org.thoughtcrime.securesms.logging.Log; import org.thoughtcrime.securesms.loki.utilities.MentionUtilities; +import org.thoughtcrime.securesms.loki.views.MessageAudioView; import org.thoughtcrime.securesms.loki.views.ProfilePictureView; -import org.thoughtcrime.securesms.loki.views.TapJackingProofLinearLayout; import org.thoughtcrime.securesms.mms.GlideRequests; import org.thoughtcrime.securesms.mms.ImageSlide; import org.thoughtcrime.securesms.mms.PartAuthority; @@ -107,9 +108,6 @@ import org.thoughtcrime.securesms.util.ThemeUtil; import org.thoughtcrime.securesms.util.Util; import org.thoughtcrime.securesms.util.ViewUtil; import org.thoughtcrime.securesms.util.views.Stub; -import org.session.libsignal.libsignal.util.guava.Optional; -import org.session.libsignal.service.loki.api.opengroups.PublicChat; -import org.session.libsignal.service.loki.api.opengroups.PublicChatAPI; import java.util.Collections; import java.util.HashSet; @@ -127,7 +125,7 @@ import network.loki.messenger.R; * */ -public class ConversationItem extends TapJackingProofLinearLayout +public class ConversationItem extends LinearLayout implements RecipientModifiedListener, BindableConversationItem { private static final String TAG = ConversationItem.class.getSimpleName(); diff --git a/app/src/main/res/layout-sw400dp/activity_register.xml b/app/src/main/res/layout-sw400dp/activity_register.xml index 6245f922bc..8cc432c160 100644 --- a/app/src/main/res/layout-sw400dp/activity_register.xml +++ b/app/src/main/res/layout-sw400dp/activity_register.xml @@ -30,7 +30,7 @@ android:textColor="@color/text" android:text="@string/activity_register_explanation" /> - - - - - - - - - - - - - - - - - -