OSDN Git Service

TwitterのアニメGIF/動画サムネイルをダブルクリックするとサムネイル画像が開くようになっていたのを修正
authorspx <spx268@gmail.com>
Tue, 10 Feb 2015 18:33:44 +0000 (03:33 +0900)
committerspx <spx268@gmail.com>
Tue, 10 Feb 2015 18:33:44 +0000 (03:33 +0900)
FullSizeImageUrlを開くようになっていたため、判定を変更

OpenTween/Thumbnail/Services/TwitterComVideo.cs
OpenTween/Tween.cs

index 764e696..2d82bf4 100644 (file)
@@ -57,7 +57,6 @@ namespace OpenTween.Thumbnail.Services
                 {
                     ImageUrl = mediaInfo.VideoUrl,
                     ThumbnailUrl = url,
-                    FullSizeImageUrl = url,
                     IsPlayable = true,
                 };
             }
index 5fe090e..4b59ef4 100644 (file)
@@ -13176,7 +13176,8 @@ namespace OpenTween
 
         private void OpenThumbnailPicture(ThumbnailInfo thumbnail)
         {
-            var url = thumbnail.FullSizeImageUrl ?? thumbnail.ThumbnailUrl;
+            var url = thumbnail.IsPlayable ? thumbnail.ImageUrl :
+                thumbnail.FullSizeImageUrl ?? thumbnail.ThumbnailUrl;
 
             this.OpenUriAsync(url);
         }