Add error message for old Android versions

This commit is contained in:
ByteHamster 2020-10-25 17:38:01 +01:00
parent c8a2f20000
commit b9c63ca992
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ public class AddFeedFragment extends Fragment {
}); });
root.findViewById(R.id.btn_add_local_folder).setOnClickListener(v -> { root.findViewById(R.id.btn_add_local_folder).setOnClickListener(v -> {
if (Build.VERSION.SDK_INT < 21) { if (Build.VERSION.SDK_INT < 21) {
((MainActivity) getActivity()).showSnackbarAbovePlayer(
"Local folders are only supported on Android 5.0 and later", Snackbar.LENGTH_LONG);
return; return;
} }
try { try {