From 1d85661ab950a975286de5c41e89a3493d54f9bc Mon Sep 17 00:00:00 2001 From: TacoTheDank Date: Wed, 21 Jul 2021 19:31:41 -0400 Subject: [PATCH] Update some AndroidX libraries --- app/build.gradle | 8 ++++---- app/src/main/java/org/schabi/newpipe/MainActivity.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index eef62731d..f65f27bd9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -101,7 +101,7 @@ android { ext { checkstyleVersion = '8.38' - androidxLifecycleVersion = '2.2.0' + androidxLifecycleVersion = '2.3.1' androidxRoomVersion = '2.3.0' icepickVersion = '3.2.0' @@ -196,12 +196,12 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}" /** AndroidX **/ - implementation 'androidx.appcompat:appcompat:1.3.0' + implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' - implementation 'androidx.core:core-ktx:1.3.2' + implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.documentfile:documentfile:1.0.1' - implementation 'androidx.fragment:fragment-ktx:1.3.5' + implementation 'androidx.fragment:fragment-ktx:1.3.6' implementation "androidx.lifecycle:lifecycle-livedata:${androidxLifecycleVersion}" implementation "androidx.lifecycle:lifecycle-viewmodel:${androidxLifecycleVersion}" implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' diff --git a/app/src/main/java/org/schabi/newpipe/MainActivity.java b/app/src/main/java/org/schabi/newpipe/MainActivity.java index da3a8cc7d..5b1cf48e5 100644 --- a/app/src/main/java/org/schabi/newpipe/MainActivity.java +++ b/app/src/main/java/org/schabi/newpipe/MainActivity.java @@ -402,7 +402,7 @@ public class MainActivity extends AppCompatActivity { new Handler(Looper.getMainLooper()).postDelayed(() -> { getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); - recreate(); + ActivityCompat.recreate(MainActivity.this); }, 300); }