From 2720e445eae73f93c81adef181f6f85e416348a5 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Mon, 15 Jun 2020 08:19:16 +0900 Subject: [PATCH] Changed low quality settting to true by default --- app/build.gradle | 4 ++-- app/release/output.json | 2 +- app/src/main/java/xyz/quaver/pupil/Pupil.kt | 7 +++++++ app/src/main/res/xml/root_preferences.xml | 3 ++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 34c4fe03..bd3755c2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,8 +19,8 @@ android { applicationId "xyz.quaver.pupil" minSdkVersion 16 targetSdkVersion 29 - versionCode 51 - versionName "4.16" + versionCode 52 + versionName "4.17" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true vectorDrawables.useSupportLibrary = true diff --git a/app/release/output.json b/app/release/output.json index 5c7bd789..41aaa36f 100644 --- a/app/release/output.json +++ b/app/release/output.json @@ -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":{}}] \ No newline at end of file +[{"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":{}}] \ No newline at end of file diff --git a/app/src/main/java/xyz/quaver/pupil/Pupil.kt b/app/src/main/java/xyz/quaver/pupil/Pupil.kt index 54543259..54b1b78c 100644 --- a/app/src/main/java/xyz/quaver/pupil/Pupil.kt +++ b/app/src/main/java/xyz/quaver/pupil/Pupil.kt @@ -59,6 +59,13 @@ class Pupil : MultiDexApplication() { preference.edit().remove("dl_location").apply() } + if (!preference.getBoolean("low_quality_reset", false)) { + preference.edit() + .putBoolean("low_quality", true) + .putBoolean("low_quality_reset", true) + .apply() + } + histories = Histories(File(ContextCompat.getDataDir(this), "histories.json")) favorites = Histories(File(ContextCompat.getDataDir(this), "favorites.json")) diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml index 3572ada9..cd28fb7b 100644 --- a/app/src/main/res/xml/root_preferences.xml +++ b/app/src/main/res/xml/root_preferences.xml @@ -50,7 +50,8 @@ + app:summary="@string/settings_low_quality_summary" + app:defaultValue="true"/>