diff options
author | ByteHamster <info@bytehamster.com> | 2022-04-09 16:18:50 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-04-09 16:18:50 +0200 |
commit | 52809976a0660224d74d31a4230802b05a4ae1e9 (patch) | |
tree | 6d2499ca186241f2a3801709628278c6c006e83d /app/src/main | |
parent | b751ad2aa47a709e88bba4524f3e3dfd0aabb840 (diff) | |
download | AntennaPod-52809976a0660224d74d31a4230802b05a4ae1e9.zip |
Do not crash when clicking button while feed is not loaded yet
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java index 715786921..afb0ab8c5 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java @@ -173,6 +173,8 @@ public class ItemFragment extends Fragment { && UsageStatistics.hasSignificantBiasTo(UsageStatistics.ACTION_STREAM)) { showOnDemandConfigBalloon(true); return; + } else if (actionButton1 == null) { + return; // Not loaded yet } actionButton1.onClick(getContext()); }); @@ -181,6 +183,8 @@ public class ItemFragment extends Fragment { && UsageStatistics.hasSignificantBiasTo(UsageStatistics.ACTION_DOWNLOAD)) { showOnDemandConfigBalloon(false); return; + } else if (actionButton2 == null) { + return; // Not loaded yet } actionButton2.onClick(getContext()); }); |