Android: Persist Settings using ViewModel

Just for maintainability. This is a shorter and more standard
solution compared to our current one where the Fragment
persists the Settings and passes it to the Activity.
This commit is contained in:
JosJuice
2020-08-05 19:47:45 +02:00
parent 25ebc3c07c
commit a427eafa7b
8 changed files with 24 additions and 57 deletions

View File

@ -81,6 +81,7 @@ dependencies {
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.2.0'
implementation 'com.google.android.material:material:1.1.0'
// Android TV UI libraries.