Skip to content

Commit 2720e44

Browse files
committed
Changed low quality settting to true by default
1 parent 49ba579 commit 2720e44

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ android {
1919
applicationId "xyz.quaver.pupil"
2020
minSdkVersion 16
2121
targetSdkVersion 29
22-
versionCode 51
23-
versionName "4.16"
22+
versionCode 52
23+
versionName "4.17"
2424
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2525
multiDexEnabled true
2626
vectorDrawables.useSupportLibrary = true

app/release/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":51,"versionName":"4.15","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":52,"versionName":"4.17","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]

app/src/main/java/xyz/quaver/pupil/Pupil.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ class Pupil : MultiDexApplication() {
5959
preference.edit().remove("dl_location").apply()
6060
}
6161

62+
if (!preference.getBoolean("low_quality_reset", false)) {
63+
preference.edit()
64+
.putBoolean("low_quality", true)
65+
.putBoolean("low_quality_reset", true)
66+
.apply()
67+
}
68+
6269
histories = Histories(File(ContextCompat.getDataDir(this), "histories.json"))
6370
favorites = Histories(File(ContextCompat.getDataDir(this), "favorites.json"))
6471

app/src/main/res/xml/root_preferences.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
<SwitchPreferenceCompat
5151
app:key="low_quality"
5252
app:title="@string/settings_low_quality"
53-
app:summary="@string/settings_low_quality_summary"/>
53+
app:summary="@string/settings_low_quality_summary"
54+
app:defaultValue="true"/>
5455

5556
</PreferenceCategory>
5657

0 commit comments

Comments
 (0)