fixed ExternalLinkHandler
This commit is contained in:
@@ -34,6 +34,10 @@ public class ExternalLinkHandler{
|
||||
return parseVideoFile(file, getContext(), isEnableExternalOpening());
|
||||
}
|
||||
|
||||
public static boolean parseVideoFile(VideoFile file, Context context) {
|
||||
return parseVideoFile(file, context, isEnableExternalOpening());
|
||||
}
|
||||
|
||||
public static boolean parseVideoFile(VideoFile file, Activity activity) {
|
||||
return parseVideoFile(file, activity, isEnableExternalOpening());
|
||||
}
|
||||
@@ -51,7 +55,7 @@ public class ExternalLinkHandler{
|
||||
}
|
||||
}
|
||||
|
||||
if (!isEnabled) return false;
|
||||
if (!isEnabled || file.isEmpty()) return false;
|
||||
|
||||
if (checkVkVideo(file)) {
|
||||
if (qualities.size() == 1) {
|
||||
|
||||
@@ -1427,7 +1427,7 @@
|
||||
.method public static final a(Landroid/content/Context;Lcom/vk/dto/common/VideoFile;Ljava/lang/String;Lcom/vk/libvideo/ad/AdsDataProvider;Ljava/lang/String;Lcom/vk/statistic/Statistic;ZLcom/vk/common/links/OpenCallback;Ljava/lang/Integer;)V
|
||||
.locals 14
|
||||
|
||||
invoke-static/range {p1 .. p1}, Lru/vtosters/lite/utils/ExternalLinkHandler;->parseVideoFile(Lcom/vk/dto/common/VideoFile;)Z
|
||||
invoke-static {p1, p0}, Lru/vtosters/lite/utils/ExternalLinkHandler;->parseVideoFile(Lcom/vk/dto/common/VideoFile;Landroid/content/Context;)Z
|
||||
|
||||
move-result v9
|
||||
|
||||
|
||||
@@ -1206,9 +1206,19 @@
|
||||
.end method
|
||||
|
||||
.method public final w1()Z
|
||||
.locals 1
|
||||
.locals 2
|
||||
|
||||
.line 1
|
||||
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->isEnableExternalOpening()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_228
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_228
|
||||
iget-boolean v0, p0, Lcom/vk/dto/account/VideoConfig;->e:Z
|
||||
|
||||
return v0
|
||||
|
||||
Reference in New Issue
Block a user