Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support to open youtu.be links in YouTube app.

  • Loading branch information...
commit 2893141aece0aa4c3a7468da10e580d52beba69e 1 parent 25678ed
Harold authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/com/andrewshu/android/reddit/common/util/Util.java
View
2  src/com/andrewshu/android/reddit/common/util/Util.java
@@ -486,7 +486,7 @@ static Uri createMobileWikpediaUri(Uri uri) {
public static boolean isYoutubeUri(Uri uri) {
if (uri == null) return false;
String host = uri.getHost();
- return host != null && host.endsWith(".youtube.com");
+ return host != null && (host.endsWith(".youtube.com") || host.equals("youtu.be"));
}
public static boolean isAndroidMarketUri(Uri uri) {
Please sign in to comment.
Something went wrong with that request. Please try again.