diff --git a/app/src/main/java/com/blankie/unshortify/ShareActivity.java b/app/src/main/java/com/blankie/unshortify/ShareActivity.java index f8341f5..ba0c7a7 100644 --- a/app/src/main/java/com/blankie/unshortify/ShareActivity.java +++ b/app/src/main/java/com/blankie/unshortify/ShareActivity.java @@ -34,7 +34,7 @@ public class ShareActivity extends Activity { } if (urlParsed.getHost() == null || (urlParsed.getHost() != "youtube.com" && - urlParsed.getHost().endsWith(".youtube.com")) { + urlParsed.getHost().endsWith(".youtube.com"))) { Toast.makeText(getApplicationContext(), R.string.non_youtube_url, Toast.LENGTH_SHORT).show(); return;