Skip to content

Commit c534ece

Browse files
committed
[1.2.1]fix bug
1 parent b0e5b45 commit c534ece

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

resources/META-INF/plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
]]>
3030
</change-notes>
3131

32-
<idea-version since-build="173.0"/>
32+
<idea-version since-build="181.0"/>
3333

3434
<extensions defaultExtensionNs="com.intellij">
3535
<codeInsight.lineMarkerProvider

src/com/apkfuns/androidsourceviewer/download/AndroidOSSearch.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.apkfuns.androidsourceviewer.download.inteface.FileDownload;
44
import com.apkfuns.androidsourceviewer.entity.ClassFile;
55
import com.apkfuns.androidsourceviewer.entity.DownloadTask;
6+
import com.apkfuns.androidsourceviewer.util.HttpUtil;
67
import com.apkfuns.androidsourceviewer.util.Log;
78
import com.intellij.openapi.progress.util.StatusBarProgress;
89
import com.intellij.openapi.util.Pair;
@@ -33,7 +34,15 @@ public Pair<Boolean, List<File>> onDownload(@NotNull DownloadTask[] tasks, @NotN
3334
for (DownloadTask task : tasks) {
3435
String url = String.format(REQUEST_PATH, task.getClassDescriptor().getFileName());
3536
try {
36-
String content = HttpRequests.request(url).readString();
37+
String content = null;
38+
try {
39+
content = HttpUtil.syncGet(url);
40+
} catch (Exception e) {
41+
e.printStackTrace();
42+
}
43+
if (content == null) {
44+
continue;
45+
}
3746
Pattern pattern = Pattern.compile("<a target=\"_blank\" class=\"cleanurl\" href=\"(.*?)\"><b>.*</b></a>");
3847
Matcher matcher = pattern.matcher(content);
3948
String backup = null;

0 commit comments

Comments
 (0)