diff --git a/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java b/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java index d8e63cd..13481a1 100644 --- a/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java +++ b/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java @@ -39,7 +39,7 @@ public class AddStreamFragment extends Fragment { public void onClick(View view) { // Check the field is filled String url = binding.streamUrl.getText().toString(); - if (!url.startsWith("rtsp://")) { + if (!(url.startsWith("rtsp://") || url.startsWith("http://"))) { Snackbar.make(view, R.string.add_stream_invalid_url, Snackbar.LENGTH_LONG) .setAction(R.string.add_stream_invalid_url_dismiss, null).show(); return;