aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-09-05 03:11:01 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-09-05 03:11:01 +0000
commit38caf7365a38b183328d23384eff98505424c796 (patch)
treebcc64893732493b1274b38876750738b6dd488a0 /app/build.gradle
parent6dc0521e8e7e8ee366d7208d4d4edb3c07a3e735 (diff)
downloadinfinity-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.gradle2
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'