diff --git a/src/org/thoughtcrime/securesms/ConversationListAdapter.java b/src/org/thoughtcrime/securesms/ConversationListAdapter.java index 98b6394d0a..d2cb76c508 100644 --- a/src/org/thoughtcrime/securesms/ConversationListAdapter.java +++ b/src/org/thoughtcrime/securesms/ConversationListAdapter.java @@ -27,6 +27,7 @@ import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.view.ViewGroup; +import org.thoughtcrime.redphone.util.Conversions; import org.thoughtcrime.securesms.crypto.MasterCipher; import org.thoughtcrime.securesms.crypto.MasterSecret; import org.thoughtcrime.securesms.database.CursorRecyclerViewAdapter; @@ -34,6 +35,8 @@ import org.thoughtcrime.securesms.database.DatabaseFactory; import org.thoughtcrime.securesms.database.ThreadDatabase; import org.thoughtcrime.securesms.database.model.ThreadRecord; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; import java.util.Collections; import java.util.HashSet; import java.util.Locale; @@ -46,19 +49,21 @@ import java.util.Set; */ public class ConversationListAdapter extends CursorRecyclerViewAdapter { - private final ThreadDatabase threadDatabase; - private final MasterSecret masterSecret; - private final MasterCipher masterCipher; - private final Locale locale; - private final LayoutInflater inflater; - private final ItemClickListener clickListener; + private final ThreadDatabase threadDatabase; + private final MasterSecret masterSecret; + private final MasterCipher masterCipher; + private final Locale locale; + private final LayoutInflater inflater; + private final ItemClickListener clickListener; + private final @NonNull MessageDigest digest; private final Set batchSet = Collections.synchronizedSet(new HashSet()); private boolean batchMode = false; protected static class ViewHolder extends RecyclerView.ViewHolder { public ViewHolder(final @NonNull ConversationListItem itemView, - final @Nullable ItemClickListener clickListener) { + final @Nullable ItemClickListener clickListener) + { super(itemView); itemView.setOnClickListener(new OnClickListener() { @Override @@ -76,23 +81,39 @@ public class ConversationListAdapter extends CursorRecyclerViewAdapter