From ac41f5c319dabba13ce4856b37cfa4d94252eafd Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 30 Oct 2021 22:19:12 +0200 Subject: [PATCH] Refresh item state on start Otherwise, pressing the download button, pausing and coming back shows the wrong action buttons. --- .../java/de/danoeh/antennapod/fragment/ItemFragment.java | 8 +------- 1 file changed, 1 insertion(+), 7 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 d4c243676..7f561e583 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java @@ -14,7 +14,6 @@ import android.widget.Button; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.text.TextUtilsCompat; import androidx.core.util.ObjectsCompat; @@ -223,12 +222,6 @@ public class ItemFragment extends Fragment { balloon.showAlignBottom(butAction1, 0, (int) (-12 * getResources().getDisplayMetrics().density)); } - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - load(); - } - @Override public void onStart() { super.onStart(); @@ -240,6 +233,7 @@ public class ItemFragment extends Fragment { } }; controller.init(); + load(); } @Override