Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tom5079 committed Feb 1, 2022
1 parent eb98424 commit 8163f2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {
minSdkVersion 16
targetSdkVersion 31
versionCode 69
versionName "5.3.2"
versionName "5.3.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
2 changes: 1 addition & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"filters": [],
"attributes": [],
"versionCode": 69,
"versionName": "5.3.2",
"versionName": "5.3.3",
"outputFile": "app-release.apk"
}
],
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/xyz/quaver/pupil/util/downloader/Cache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ class Cache private constructor(context: Context, val galleryID: Int) : ContextW

if (!file.exists())
file.createNewFile()

file.writeBytes(data)
setMetadata { metadata -> metadata.imageList!![index] = fileName }
}

Expand Down
4 changes: 1 addition & 3 deletions app/src/main/java/xyz/quaver/pupil/util/misc.kt
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@ fun GalleryBlock.formatDownloadFolderTest(format: String): String =

suspend fun GalleryInfo.getRequestBuilders(): List<Request.Builder> {
val galleryID = this.id.toIntOrNull() ?: 0
val lowQuality = Preferences["low_quality", true]

return this.files.map {
Request.Builder()
.url(
runCatching {
imageUrlFromImage(galleryID, it, !lowQuality)
imageUrlFromImage(galleryID, it, false)
}
.onFailure {
FirebaseCrashlytics.getInstance().recordException(it)
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/xml/root_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@
app:key="nomedia"
app:title="@string/settings_nomedia_title"/>

<SwitchPreferenceCompat
app:key="low_quality"
app:title="@string/settings_low_quality"
app:summary="@string/settings_low_quality_summary"
app:defaultValue="true"/>

</PreferenceCategory>

<PreferenceCategory
Expand Down

0 comments on commit 8163f2f

Please sign in to comment.