diff options
author | ByteHamster <info@bytehamster.com> | 2021-11-17 22:34:26 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-11-17 22:34:26 +0100 |
commit | c9829be9f5b0872687b6258cfe34183a98d1defa (patch) | |
tree | a149ee2bc0fd422d6d52a836a62d9d6ea5b16bcd | |
parent | 51e44c68c841cc8bb2a65d28c62fb3838061c028 (diff) | |
download | AntennaPod-c9829be9f5b0872687b6258cfe34183a98d1defa.zip |
Do not crash when opening chapter dialog twice
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java | 3 |
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()); |