From e1ef2a643a9b86791c87ee176f687f8c34cba79e Mon Sep 17 00:00:00 2001 From: Taco Date: Sat, 9 Mar 2024 04:56:58 -0500 Subject: [PATCH] Update AndroidX libraries (#6940) --- .../preferences/ImportExportPreferencesFragment.java | 5 +++++ .../danoeh/antennapod/view/LiftOnScrollListener.java | 2 +- build.gradle | 10 +++++----- playback/cast/build.gradle | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/ImportExportPreferencesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/ImportExportPreferencesFragment.java index 686be884c..71ba326dd 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/ImportExportPreferencesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/ImportExportPreferencesFragment.java @@ -296,6 +296,11 @@ public class ImportExportPreferencesFragment extends PreferenceFragmentCompat { } private static class BackupDatabase extends ActivityResultContracts.CreateDocument { + + BackupDatabase() { + super("application/x-sqlite3"); + } + @NonNull @Override public Intent createIntent(@NonNull final Context context, @NonNull final String input) { diff --git a/app/src/main/java/de/danoeh/antennapod/view/LiftOnScrollListener.java b/app/src/main/java/de/danoeh/antennapod/view/LiftOnScrollListener.java index 1e53ee828..020fb40e8 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/LiftOnScrollListener.java +++ b/app/src/main/java/de/danoeh/antennapod/view/LiftOnScrollListener.java @@ -41,7 +41,7 @@ public class LiftOnScrollListener extends RecyclerView.OnScrollListener } @Override - public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { + public void onScrollChange(@NonNull NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { elevate(scrollY != 0); } diff --git a/build.gradle b/build.gradle index 0428e8b2d..7d6bb5fa2 100644 --- a/build.gradle +++ b/build.gradle @@ -10,11 +10,11 @@ plugins { project.ext { // AndroidX - annotationVersion = "1.2.0" - appcompatVersion = "1.3.1" - coreVersion = "1.5.0" - fragmentVersion = "1.3.6" - mediaVersion = "1.4.3" + annotationVersion = "1.4.0" + appcompatVersion = "1.5.1" + coreVersion = "1.8.0" + fragmentVersion = "1.5.5" + mediaVersion = "1.6.0" paletteVersion = "1.0.0" preferenceVersion = "1.1.1" recyclerViewVersion = "1.2.1" diff --git a/playback/cast/build.gradle b/playback/cast/build.gradle index 3025a369c..ac5de0e6b 100644 --- a/playback/cast/build.gradle +++ b/playback/cast/build.gradle @@ -18,6 +18,6 @@ dependencies { implementation "org.greenrobot:eventbus:$eventbusVersion" annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion" - playApi 'androidx.mediarouter:mediarouter:1.2.5' + playApi 'androidx.mediarouter:mediarouter:1.3.0' playApi 'com.google.android.gms:play-services-cast-framework:21.2.0' }