Commit 5f3ca623 authored by Thomas's avatar Thomas
Browse files

Fix issue #955 - Focus the clicked messages and allow selections for remote conversations

parent 95e49520
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2041,6 +2041,18 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
                                            Toasty.info(context, context.getString(R.string.toast_error_search), Toasty.LENGTH_SHORT).show();
                                        }
                                    });
                        } else if (context instanceof ContextActivity) {
                            int position = 0;
                            for (Status _status : statusList) {
                                if (_status.isFocused) {
                                    _status.isFocused = false;
                                    adapter.notifyItemChanged(position);
                                } else if (statusToDeal.equals(_status)) {
                                    _status.isFocused = true;
                                    adapter.notifyItemChanged(position);
                                }
                                position++;
                            }
                        }
                    } else {
                        Intent intent = new Intent(context, ContextActivity.class);
+4 −0
Original line number Diff line number Diff line
@@ -280,6 +280,10 @@ public class FragmentMastodonContext extends Fragment {
            }
            if (found) {
                binding.recyclerView.scrollToPosition(position);
                statuses.get(0).isFocused = false;
                statuses.get(position).isFocused = true;
                statusAdapter.notifyItemChanged(0);
                statusAdapter.notifyItemChanged(position);
            }
        }
    }