This commit is contained in:
Mariotaku Lee 2016-02-09 11:41:56 +08:00
parent e6322d11b8
commit 5ba2d4748f
3 changed files with 6 additions and 5 deletions

View File

@ -16,8 +16,8 @@ public class TwitterPicProvider implements Provider {
@Override
public boolean supports(@NonNull String link) {
final String authority = PreviewMediaExtractor.getAuthority(link);
return (".twimg.com".equals(authority) || ".twimg.com".equals(authority))
&& !link.contains("/tweet_video");
if (authority == null) return false;
return authority.endsWith(".twimg.com") && !link.contains("/tweet_video");
}
@Nullable

View File

@ -24,7 +24,7 @@ android {
minSdkVersion 14
targetSdkVersion 23
versionCode 137
versionName "3.0.1"
versionName "3.0.2-SNAPSHOT"
multiDexEnabled true
buildConfigField 'boolean', 'ENABLE_MEDIA_VIEWER', 'Boolean.parseBoolean("true")'

View File

@ -54,8 +54,9 @@ public class OnLinkClickHandler implements OnLinkClickListener, Constants {
}
@Override
public void onLinkClick(final String link, final String orig, final long accountId, long extraId, final int type,
final boolean sensitive, int start, int end) {
public void onLinkClick(final String link, final String orig, final long accountId,
final long extraId, final int type, final boolean sensitive,
final int start, final int end) {
if (manager != null && manager.isActive()) return;
if (!isPrivateData()) {
// BEGIN HotMobi