fixed #343
This commit is contained in:
parent
e6322d11b8
commit
5ba2d4748f
|
@ -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
|
||||
|
|
|
@ -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")'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue