summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2021-11-21 21:11:10 +0100
committerGitHub <noreply@github.com>2021-11-21 21:11:10 +0100
commit71880c62d9fc4bbe8553d57cd144d022d204b799 (patch)
treeb12142da246ba7fc7e157656e0ebb022b4674e8b /app
parent071a6111269c7c0168fe348efa16977911d42786 (diff)
parentc9829be9f5b0872687b6258cfe34183a98d1defa (diff)
downloadantennapod-71880c62d9fc4bbe8553d57cd144d022d204b799.zip
Merge pull request #5555 from ByteHamster/crash-double-chapter
Do not crash when opening chapter dialog twice
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java
index e833d0777..2d448faa8 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java
@@ -110,9 +110,8 @@ public class CoverFragment extends Fragment {
butNextChapter.setColorFilter(colorFilter);
butPrevChapter.setColorFilter(colorFilter);
descriptionIcon.setColorFilter(colorFilter);
- ChaptersFragment chaptersFragment = new ChaptersFragment();
chapterControl.setOnClickListener(v ->
- chaptersFragment.show(getChildFragmentManager(), ChaptersFragment.TAG));
+ new ChaptersFragment().show(getChildFragmentManager(), ChaptersFragment.TAG));
butPrevChapter.setOnClickListener(v -> seekToPrevChapter());
butNextChapter.setOnClickListener(v -> seekToNextChapter());