diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-09-05 03:11:01 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-09-05 03:11:01 +0000 |
commit | 38caf7365a38b183328d23384eff98505424c796 (patch) | |
tree | bcc64893732493b1274b38876750738b6dd488a0 /app/build.gradle | |
parent | 6dc0521e8e7e8ee366d7208d4d4edb3c07a3e735 (diff) | |
download | infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.tar infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.tar.gz infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.tar.bz2 infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.tar.lz infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.tar.xz infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.tar.zst infinity-for-reddit-38caf7365a38b183328d23384eff98505424c796.zip |
Fix a bug which causes the ViewModel not retain its state after orientation change.
Diffstat (limited to '')
-rw-r--r-- | app/build.gradle | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle index 9a80bb9c..4f792b29 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,6 +51,8 @@ dependencies { def lifecycleVersion = "2.2.0" implementation "androidx.lifecycle:lifecycle-livedata:$lifecycleVersion" implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion" + implementation "androidx.lifecycle:lifecycle-runtime:$lifecycleVersion" + implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion" annotationProcessor "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion" implementation 'androidx.paging:paging-runtime:3.0.1' |