Standardize settings entirely

Update the structure of the settings system to do several things:
- Finally use int preferences everywhere instead of the mix of strings & ints from before
- Create a new preference named `IntListPreference` that enables the use of integers in list preferences
- Actually centralize array values and default values into a single integers xml
- Isolate all the new migration code into a single file
- Refreshed the int tables used by data objects [DB version has been updated, will not update when other changes]

The only preference not migrated is doAtEnd since that is being planned to be retired in a future LoopMode update.
This commit is contained in:
OxygenCobalt
2021-04-03 10:53:16 -06:00
parent 355b3885e3
commit 0305eb0beb
29 changed files with 575 additions and 280 deletions
+4 -4
View File
@@ -9,8 +9,8 @@ android {
defaultConfig {
applicationId "org.oxycblt.auxio"
versionName "1.3.3"
versionCode 5
versionName "1.4.0"
versionCode 6
minSdkVersion 21
targetSdkVersion 30
@@ -65,7 +65,7 @@ dependencies {
// General
implementation "androidx.core:core-ktx:1.3.2"
implementation "androidx.activity:activity-ktx:1.2.2"
implementation "androidx.fragment:fragment-ktx:1.3.1"
implementation "androidx.fragment:fragment-ktx:1.3.2"
// UI
implementation "androidx.recyclerview:recyclerview:1.1.0"
@@ -73,7 +73,7 @@ dependencies {
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
// Lifecycle
def lifecycle_version = "2.3.0"
def lifecycle_version = "2.3.1"
implementation "androidx.lifecycle:lifecycle-common:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"