deps: upgrade deps

constraintlayout -> 2.1.1
media -> 1.4.2
exoplayer -> 2.15.1
This commit is contained in:
OxygenCobalt 2021-09-29 06:43:43 -06:00
parent 23399be0c3
commit 394327a2c4
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 7 additions and 7 deletions

View file

@ -69,7 +69,7 @@ dependencies {
// UI // UI
implementation "androidx.recyclerview:recyclerview:1.2.1" 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.dynamicanimation:dynamicanimation:1.0.0"
implementation "androidx.viewpager2:viewpager2:1.1.0-beta01" implementation "androidx.viewpager2:viewpager2:1.1.0-beta01"
@ -86,7 +86,7 @@ dependencies {
// Media // Media
// TODO: Migrate to media2 when I can figure out how to use it // 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 // Preferences
implementation "androidx.preference:preference-ktx:1.1.1" implementation "androidx.preference:preference-ktx:1.1.1"
@ -94,7 +94,7 @@ dependencies {
// --- THIRD PARTY --- // --- THIRD PARTY ---
// ExoPlayer // ExoPlayer
implementation "com.google.android.exoplayer:exoplayer-core:2.15.0" implementation "com.google.android.exoplayer:exoplayer-core:2.15.1"
// Image loading // Image loading
implementation 'io.coil-kt:coil:1.3.2' implementation 'io.coil-kt:coil:1.3.2'

View file

@ -84,16 +84,16 @@ class HomeFragment : Fragment() {
binding.homeToolbar.apply { binding.homeToolbar.apply {
setOnMenuItemClickListener { item -> setOnMenuItemClickListener { item ->
when (item.itemId) { when (item.itemId) {
R.id.action_search -> {
findNavController().navigate(HomeFragmentDirections.actionShowSearch())
}
R.id.action_settings -> { R.id.action_settings -> {
parentFragment?.parentFragment?.findNavController()?.navigate( parentFragment?.parentFragment?.findNavController()?.navigate(
MainFragmentDirections.actionShowSettings() MainFragmentDirections.actionShowSettings()
) )
} }
R.id.action_search -> {
findNavController().navigate(HomeFragmentDirections.actionShowSearch())
}
R.id.submenu_sorting -> { } R.id.submenu_sorting -> { }
// Sorting option was selected, check then and update the mode // Sorting option was selected, check then and update the mode