diff options
4 files changed, 4 insertions, 4 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 8bc88b8f7..dc074a1ea 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java @@ -332,7 +332,7 @@ public class CoverFragment extends Fragment { if (clipboardManager != null) { clipboardManager.setPrimaryClip(ClipData.newPlainText("AntennaPod", text)); } - if (Build.VERSION.SDK_INT < 32) { + if (Build.VERSION.SDK_INT <= 32) { ((MainActivity) requireActivity()).showSnackbarAbovePlayer( getResources().getString(R.string.copied_to_clipboard), Snackbar.LENGTH_SHORT); } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java index 1ad55b2af..b4fa77c75 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java @@ -99,7 +99,7 @@ public class FeedInfoFragment extends Fragment implements MaterialToolbar.OnMenu android.content.ClipboardManager cm = (android.content.ClipboardManager) getContext() .getSystemService(Context.CLIPBOARD_SERVICE); cm.setPrimaryClip(clipData); - if (Build.VERSION.SDK_INT < 32) { + if (Build.VERSION.SDK_INT <= 32) { ((MainActivity) getActivity()).showSnackbarAbovePlayer(R.string.copied_to_clipboard, Snackbar.LENGTH_SHORT); } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/about/AboutFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/about/AboutFragment.java index ad203d12a..01dd5911c 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/about/AboutFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/about/AboutFragment.java @@ -25,7 +25,7 @@ public class AboutFragment extends PreferenceFragmentCompat { ClipData clip = ClipData.newPlainText(getString(R.string.bug_report_title), findPreference("about_version").getSummary()); clipboard.setPrimaryClip(clip); - if (Build.VERSION.SDK_INT < 32) { + if (Build.VERSION.SDK_INT <= 32) { Snackbar.make(getView(), R.string.copied_to_clipboard, Snackbar.LENGTH_SHORT).show(); } return true; diff --git a/app/src/main/java/de/danoeh/antennapod/view/ShownotesWebView.java b/app/src/main/java/de/danoeh/antennapod/view/ShownotesWebView.java index ea3c73f15..f66b114b3 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/ShownotesWebView.java +++ b/app/src/main/java/de/danoeh/antennapod/view/ShownotesWebView.java @@ -104,7 +104,7 @@ public class ShownotesWebView extends WebView implements View.OnLongClickListene if (clipboardManager != null) { clipboardManager.setPrimaryClip(ClipData.newPlainText("AntennaPod", r.getExtra())); } - if (Build.VERSION.SDK_INT < 32 && this.getContext() instanceof MainActivity) { + if (Build.VERSION.SDK_INT <= 32 && this.getContext() instanceof MainActivity) { ((MainActivity) this.getContext()).showSnackbarAbovePlayer( getResources().getString(R.string.copied_to_clipboard), Snackbar.LENGTH_SHORT); |