diff --git a/app/build.gradle b/app/build.gradle
index 71feab39..5d545827 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -19,8 +19,8 @@ android {
applicationId "xyz.quaver.pupil"
minSdkVersion 16
targetSdkVersion 29
- versionCode 53
- versionName "4.18"
+ versionCode 54
+ versionName "4.18.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
@@ -72,7 +72,6 @@ dependencies {
implementation 'com.github.arimorty:floatingsearchview:2.1.1'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.github.bumptech.glide:glide:4.11.0'
- implementation "com.github.bumptech.glide:okhttp3-integration:4.11.0"
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
kapt 'com.github.bumptech.glide:compiler:4.11.0'
implementation ("com.github.bumptech.glide:recyclerview-integration:4.11.0") {
diff --git a/app/release/output.json b/app/release/output.json
index 246862e8..967b8923 100644
--- a/app/release/output.json
+++ b/app/release/output.json
@@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"properties": [],
- "versionCode": 53,
- "versionName": "53",
+ "versionCode": 54,
+ "versionName": "54",
"enabled": true,
"outputFile": "app-release.apk"
}
diff --git a/app/src/main/java/xyz/quaver/pupil/adapters/ReaderAdapter.kt b/app/src/main/java/xyz/quaver/pupil/adapters/ReaderAdapter.kt
index 43f7142c..a6505838 100644
--- a/app/src/main/java/xyz/quaver/pupil/adapters/ReaderAdapter.kt
+++ b/app/src/main/java/xyz/quaver/pupil/adapters/ReaderAdapter.kt
@@ -27,6 +27,7 @@ import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.RequestManager
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.load.model.GlideUrl
+import com.bumptech.glide.load.model.LazyHeaders
import com.google.android.material.snackbar.Snackbar
import com.google.firebase.crashlytics.FirebaseCrashlytics
import kotlinx.android.synthetic.main.activity_reader.view.*
@@ -102,23 +103,19 @@ class ReaderAdapter(private val glide: RequestManager,
val lowQuality = preferences.getBoolean("low_quality", false)
val url = when (reader!!.code) {
- Code.HITOMI -> {
+ Code.HITOMI ->
GlideUrl(
imageUrlFromImage(
galleryID,
reader!!.galleryInfo.files[position],
!lowQuality
)
- ).apply {
- headers["Referer"] = getReferer(galleryID)
- }
- }
- Code.HIYOBI -> {
- GlideUrl(createImgList(galleryID, reader!!, lowQuality)[position].path).apply {
- headers["User-Agent"] = user_agent
- headers["Cookie"] = cookie
- }
- }
+ , LazyHeaders.Builder().addHeader("Referer", getReferer(galleryID)).build())
+ Code.HIYOBI ->
+ GlideUrl(createImgList(galleryID, reader!!, lowQuality)[position].path, LazyHeaders.Builder()
+ .addHeader("User-Agent", user_agent)
+ .addHeader("Cookie", cookie)
+ .build())
else -> null
}
holder.view.image.post {
diff --git a/app/src/main/java/xyz/quaver/pupil/ui/MainActivity.kt b/app/src/main/java/xyz/quaver/pupil/ui/MainActivity.kt
index 65f37e9e..2a1aa3b0 100644
--- a/app/src/main/java/xyz/quaver/pupil/ui/MainActivity.kt
+++ b/app/src/main/java/xyz/quaver/pupil/ui/MainActivity.kt
@@ -144,30 +144,6 @@ class MainActivity : AppCompatActivity() {
preference.edit().putBoolean("https_block_alert", true).apply()
}
-
- if (!preference.getBoolean("apcjsa_option", false)) {
- android.app.AlertDialog.Builder(this).apply {
- setTitle(R.string.apcjsa_option_title)
- setMessage(R.string.apcjsa_option_message)
- setPositiveButton(android.R.string.yes) { _, _ ->
- val tags = Tags.parse(
- preference.getString("default_query", "") ?: ""
- )
-
- tags.add("-female:loli")
- tags.add("-male:shota")
-
- preference.edit()
- .putString("default_query", tags.toString())
- .putBoolean("cache_disable", true)
- .putBoolean("apcjsa_option", true)
- .apply()
- }
- setNegativeButton(android.R.string.no) { _, _ -> }
- }.show()
-
- preference.edit().putBoolean("apcjsa_option", true).apply()
- }
}
with(application as Pupil) {
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index 34dd3810..9a0f825e 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -146,8 +146,6 @@
登場人物を全て18歳以上にする
キャッシュを使用しない
キャッシュを使用しないため、ダウンロードできません
- (Korean only)
- (Korean only)
ユーザーID
ユーザーIDをクリップボードにコピーしました
ダウンロードエラーが発生しました。リトライしますか?
diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml
index e4321f2c..fb18e2a7 100644
--- a/app/src/main/res/values-ko/strings.xml
+++ b/app/src/main/res/values-ko/strings.xml
@@ -146,8 +146,6 @@
판사님 저는 페도가 아닙니다
캐시 비활성화
캐시를 활성화 해야 다운로드를 진행할 수 있습니다
- 아청법 대응 옵션 추가
- 경찰서 정모 확률을 줄여보고자 캐시 비활성화/태그 필터를 추가하였습니다. 적용하시겠습니까?
유저 ID
유저 ID를 클립보드에 복사했습니다
다운로드 에러가 발생했습니다. 재시도 하시겠습니까?
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3028ed1a..531e9997 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -27,9 +27,6 @@
(Korean only)
(Korean only)
- (Korean only)
- (Korean only)
-
Update failed
Please install manually by visiting github release page :{ (or try again!)
Cannot auto update because permission is denied. Please download manually from the webpage.