Skip to content

Commit 43bbdec

Browse files
author
xyoye
committed
support for png.view
1 parent 8caa7c1 commit 43bbdec

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId "com.xyoye.comictools"
1212
minSdkVersion 21
1313
targetSdkVersion 28
14-
versionCode 1
15-
versionName "1.0"
14+
versionCode 2
15+
versionName "1.0.1"
1616
testInstrumentationRunner "androidx.ComicNetworkInfo.runner.AndroidJUnitRunner"
1717
}
1818
buildTypes {
File renamed without changes.

app/release/ComicTools-1.0.1.apk

2.36 MB
Binary file not shown.

app/release/output.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]

app/src/main/java/com/xyoye/comictools/utils/ComicInfoUtils.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ object ComicInfoUtils {
6060
chapterBean.chapterId = chapterFile.name
6161
val episodeList = ArrayList<ComicBean.ChapterBean.EpisodeBean>()
6262
for (episodeFile in chapterFile.listFiles()) {
63-
if (episodeFile.absolutePath.endsWith(".jpg.view")) {
63+
if (episodeFile.absolutePath.endsWith(".jpg.view")
64+
|| episodeFile.absolutePath.endsWith(".png.view")) {
6465
val episodeBean = ComicBean.ChapterBean.EpisodeBean()
6566
episodeBean.episodePath = episodeFile.absolutePath
6667
episodeList.add(episodeBean)
@@ -140,7 +141,8 @@ object ComicInfoUtils {
140141
val episodeList = ArrayList<ComicBean.ChapterBean.EpisodeBean>()
141142

142143
for (episodeFile in chapterFile.listFiles()) {
143-
if (episodeFile.absolutePath.endsWith(".jpg.view")) {
144+
if (episodeFile.absolutePath.endsWith(".jpg.view")
145+
|| episodeFile.absolutePath.endsWith(".png.view")) {
144146
val episodeBean = ComicBean.ChapterBean.EpisodeBean()
145147
episodeBean.episodePath = episodeFile.absolutePath
146148
episodeList.add(episodeBean)

0 commit comments

Comments
 (0)