From b9c63ca992b02015fcd88c1966f805064b0068cb Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 25 Oct 2020 17:38:01 +0100 Subject: [PATCH] Add error message for old Android versions --- .../java/de/danoeh/antennapod/fragment/AddFeedFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java index fa0df9abb..8ceee3db0 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java @@ -89,6 +89,8 @@ public class AddFeedFragment extends Fragment { }); root.findViewById(R.id.btn_add_local_folder).setOnClickListener(v -> { if (Build.VERSION.SDK_INT < 21) { + ((MainActivity) getActivity()).showSnackbarAbovePlayer( + "Local folders are only supported on Android 5.0 and later", Snackbar.LENGTH_LONG); return; } try {