|
|
@ -41,19 +41,6 @@ import android.support.v7.widget.RecyclerView;
|
|
|
|
import android.support.v7.widget.RecyclerView.OnScrollListener;
|
|
|
|
import android.support.v7.widget.RecyclerView.OnScrollListener;
|
|
|
|
import android.text.ClipboardManager;
|
|
|
|
import android.text.ClipboardManager;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.ApplicationContext;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.MessageDetailsActivity;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.R;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.ShareActivity;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.components.ConversationTypingView;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.components.recyclerview.SmoothScrollingLinearLayoutManager;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.database.Address;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.logging.Log;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.view.Menu;
|
|
|
|
import android.view.Menu;
|
|
|
|
import android.view.MenuInflater;
|
|
|
|
import android.view.MenuInflater;
|
|
|
@ -69,11 +56,20 @@ import android.widget.ViewSwitcher;
|
|
|
|
|
|
|
|
|
|
|
|
import com.annimon.stream.Stream;
|
|
|
|
import com.annimon.stream.Stream;
|
|
|
|
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.conversation.ConversationAdapter.HeaderViewHolder;
|
|
|
|
import org.thoughtcrime.securesms.ApplicationContext;
|
|
|
|
import org.thoughtcrime.securesms.conversation.ConversationAdapter.ItemClickListener;
|
|
|
|
import org.thoughtcrime.securesms.MessageDetailsActivity;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.R;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.ShareActivity;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.components.ConversationTypingView;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.components.recyclerview.SmoothScrollingLinearLayoutManager;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.contactshare.Contact;
|
|
|
|
import org.thoughtcrime.securesms.contactshare.ContactUtil;
|
|
|
|
import org.thoughtcrime.securesms.contactshare.ContactUtil;
|
|
|
|
import org.thoughtcrime.securesms.contactshare.SharedContactDetailsActivity;
|
|
|
|
import org.thoughtcrime.securesms.contactshare.SharedContactDetailsActivity;
|
|
|
|
import org.thoughtcrime.securesms.contactshare.Contact;
|
|
|
|
import org.thoughtcrime.securesms.conversation.ConversationAdapter.HeaderViewHolder;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.conversation.ConversationAdapter.ItemClickListener;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.database.Address;
|
|
|
|
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
|
|
|
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
|
|
|
import org.thoughtcrime.securesms.database.MmsSmsDatabase;
|
|
|
|
import org.thoughtcrime.securesms.database.MmsSmsDatabase;
|
|
|
|
import org.thoughtcrime.securesms.database.RecipientDatabase;
|
|
|
|
import org.thoughtcrime.securesms.database.RecipientDatabase;
|
|
|
@ -82,6 +78,9 @@ import org.thoughtcrime.securesms.database.model.MediaMmsMessageRecord;
|
|
|
|
import org.thoughtcrime.securesms.database.model.MessageRecord;
|
|
|
|
import org.thoughtcrime.securesms.database.model.MessageRecord;
|
|
|
|
import org.thoughtcrime.securesms.database.model.MmsMessageRecord;
|
|
|
|
import org.thoughtcrime.securesms.database.model.MmsMessageRecord;
|
|
|
|
import org.thoughtcrime.securesms.jobs.DirectoryRefreshJob;
|
|
|
|
import org.thoughtcrime.securesms.jobs.DirectoryRefreshJob;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.logging.Log;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.loki.FriendRequestViewDelegate;
|
|
|
|
import org.thoughtcrime.securesms.longmessage.LongMessageActivity;
|
|
|
|
import org.thoughtcrime.securesms.longmessage.LongMessageActivity;
|
|
|
|
import org.thoughtcrime.securesms.mediasend.Media;
|
|
|
|
import org.thoughtcrime.securesms.mediasend.Media;
|
|
|
|
import org.thoughtcrime.securesms.mms.GlideApp;
|
|
|
|
import org.thoughtcrime.securesms.mms.GlideApp;
|
|
|
@ -147,6 +146,7 @@ public class ConversationFragment extends Fragment
|
|
|
|
private View composeDivider;
|
|
|
|
private View composeDivider;
|
|
|
|
private View scrollToBottomButton;
|
|
|
|
private View scrollToBottomButton;
|
|
|
|
private TextView scrollDateHeader;
|
|
|
|
private TextView scrollDateHeader;
|
|
|
|
|
|
|
|
public FriendRequestViewDelegate friendRequestViewDelegate; // Loki
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCreate(Bundle icicle) {
|
|
|
|
public void onCreate(Bundle icicle) {
|
|
|
@ -640,6 +640,7 @@ public class ConversationFragment extends Fragment
|
|
|
|
if (adapter == null) {
|
|
|
|
if (adapter == null) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
adapter.friendRequestViewDelegate = this.friendRequestViewDelegate;
|
|
|
|
|
|
|
|
|
|
|
|
if (cursor.getCount() >= PARTIAL_CONVERSATION_LIMIT && loader.hasLimit()) {
|
|
|
|
if (cursor.getCount() >= PARTIAL_CONVERSATION_LIMIT && loader.hasLimit()) {
|
|
|
|
adapter.setFooterView(topLoadMoreView);
|
|
|
|
adapter.setFooterView(topLoadMoreView);
|
|
|
|