Skip to content

Commit

Permalink
Merge pull request #227 from haroldb/master
Browse files Browse the repository at this point in the history
Support for youtu.be links.
  • Loading branch information
talklittle committed Jan 8, 2012
2 parents 25678ed + 2893141 commit de516c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/andrewshu/android/reddit/common/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit de516c6

Please sign in to comment.