From 394327a2c4ecd7551414455df81ba92a769cd8ba Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Wed, 29 Sep 2021 06:43:43 -0600 Subject: [PATCH] deps: upgrade deps constraintlayout -> 2.1.1 media -> 1.4.2 exoplayer -> 2.15.1 --- app/build.gradle | 6 +++--- app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4fa4b728d..269778060 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -69,7 +69,7 @@ dependencies { // UI implementation "androidx.recyclerview:recyclerview:1.2.1" - implementation "androidx.constraintlayout:constraintlayout:2.1.0" + implementation "androidx.constraintlayout:constraintlayout:2.1.1" implementation "androidx.dynamicanimation:dynamicanimation:1.0.0" implementation "androidx.viewpager2:viewpager2:1.1.0-beta01" @@ -86,7 +86,7 @@ dependencies { // Media // TODO: Migrate to media2 when I can figure out how to use it - implementation "androidx.media:media:1.4.1" + implementation "androidx.media:media:1.4.2" // Preferences implementation "androidx.preference:preference-ktx:1.1.1" @@ -94,7 +94,7 @@ dependencies { // --- THIRD PARTY --- // ExoPlayer - implementation "com.google.android.exoplayer:exoplayer-core:2.15.0" + implementation "com.google.android.exoplayer:exoplayer-core:2.15.1" // Image loading implementation 'io.coil-kt:coil:1.3.2' diff --git a/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt b/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt index 0ed7afbd2..42683613b 100644 --- a/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt @@ -84,16 +84,16 @@ class HomeFragment : Fragment() { binding.homeToolbar.apply { setOnMenuItemClickListener { item -> when (item.itemId) { + R.id.action_search -> { + findNavController().navigate(HomeFragmentDirections.actionShowSearch()) + } + R.id.action_settings -> { parentFragment?.parentFragment?.findNavController()?.navigate( MainFragmentDirections.actionShowSettings() ) } - R.id.action_search -> { - findNavController().navigate(HomeFragmentDirections.actionShowSearch()) - } - R.id.submenu_sorting -> { } // Sorting option was selected, check then and update the mode