Browse Source

fix crash when opening topics from BoardActivity

pull/61/merge
oogee 6 years ago
parent
commit
1f9a0d74b5
  1. 1
      app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java

1
app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java

@ -190,6 +190,7 @@ class BoardAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
extras.putString(BUNDLE_TOPIC_TITLE, topic.getSubject()); extras.putString(BUNDLE_TOPIC_TITLE, topic.getSubject());
intent.putExtras(extras); intent.putExtras(extras);
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent); context.startActivity(intent);
}); });
if (topicExpandableVisibility.get(topicViewHolder.getAdapterPosition() - parsedSubBoards if (topicExpandableVisibility.get(topicViewHolder.getAdapterPosition() - parsedSubBoards

Loading…
Cancel
Save