Permalink
Browse files

Merge pull request #227 from haroldb/master

Support for youtu.be links.
  • Loading branch information...
2 parents 25678ed + 2893141 commit de516c6265a0b594f1fe360633995c75686fb9d6 @talklittle committed Jan 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) {

0 comments on commit de516c6

Please sign in to comment.