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

pull/959/head
Thomas 1 year ago
parent 95e4952012
commit 5f3ca62393

@ -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);

@ -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);
}
}
}

Loading…
Cancel
Save