From eef6caf28e2bfc5fc90bc056f8c962914fa30022 Mon Sep 17 00:00:00 2001 From: oogee Date: Fri, 26 Oct 2018 15:11:58 +0300 Subject: [PATCH] fix last fix --- .../java/gr/thmmy/mthmmy/activities/board/BoardActivity.java | 2 +- .../java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java index ae6852fb..e916a339 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java @@ -125,7 +125,7 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo }); } - boardAdapter = new BoardAdapter(getApplicationContext(), parsedSubBoards, parsedTopics); + boardAdapter = new BoardAdapter(this, parsedSubBoards, parsedTopics); RecyclerView mainContent = findViewById(R.id.board_recycler_view); mainContent.setAdapter(boardAdapter); final LinearLayoutManager layoutManager = new LinearLayoutManager(this); diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java index 15829451..97857440 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardAdapter.java @@ -190,7 +190,6 @@ class BoardAdapter extends RecyclerView.Adapter { extras.putString(BUNDLE_TOPIC_TITLE, topic.getSubject()); intent.putExtras(extras); intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); }); if (topicExpandableVisibility.get(topicViewHolder.getAdapterPosition() - parsedSubBoards