chore: upgrade dependencies
Yet another dependency upgrade churn: Android Plugin -> 4.2.2 Material -> 1.4.0 Androidx Core -> 1.6.0 Apparently material deprecated a bunch of BottomNavigationView's stuff for no good reason. Okay.
This commit is contained in:
parent
07b16ec902
commit
85081c385f
5 changed files with 8 additions and 7 deletions
|
@ -61,7 +61,7 @@ dependencies {
|
|||
// --- SUPPORT ---
|
||||
|
||||
// General
|
||||
implementation "androidx.core:core-ktx:1.5.0"
|
||||
implementation "androidx.core:core-ktx:1.6.0"
|
||||
implementation "androidx.activity:activity-ktx:1.2.3"
|
||||
implementation 'androidx.fragment:fragment-ktx:1.3.5'
|
||||
|
||||
|
@ -97,7 +97,7 @@ dependencies {
|
|||
implementation 'io.coil-kt:coil:1.2.2'
|
||||
|
||||
// Material
|
||||
implementation "com.google.android.material:material:1.3.0"
|
||||
implementation "com.google.android.material:material:1.4.0"
|
||||
|
||||
// --- DEBUG ---
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import androidx.navigation.NavController
|
|||
import androidx.navigation.NavOptions
|
||||
import androidx.navigation.fragment.NavHostFragment
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import com.google.android.material.bottomnavigation.LabelVisibilityMode
|
||||
import com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
import org.oxycblt.auxio.databinding.FragmentMainBinding
|
||||
import org.oxycblt.auxio.detail.DetailViewModel
|
||||
import org.oxycblt.auxio.music.Song
|
||||
|
@ -69,11 +69,11 @@ class MainFragment : Fragment() {
|
|||
itemTextColor = navTints
|
||||
|
||||
if (isTablet(resources) && !isLandscape(resources)) {
|
||||
labelVisibilityMode = LabelVisibilityMode.LABEL_VISIBILITY_LABELED
|
||||
labelVisibilityMode = BottomNavigationView.LABEL_VISIBILITY_LABELED
|
||||
}
|
||||
|
||||
navController?.let { controller ->
|
||||
binding.navBar.setOnNavigationItemSelectedListener { item ->
|
||||
binding.navBar.setOnItemSelectedListener { item ->
|
||||
navigateWithItem(controller, item)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ fun String.getGenreNameCompat(): String? {
|
|||
}
|
||||
}
|
||||
|
||||
// ID3 v3+, current name is fine.
|
||||
// Current name is fine.
|
||||
return null
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
<!-- The basic black theme derived in all black accents. -->
|
||||
<style name="Theme.Base.Black" parent="Theme.Base">
|
||||
<item name="android:textColorPrimary">@android:color/white</item>
|
||||
<item name="colorSurface">@color/surface_color_black</item>
|
||||
<item name="materialAlertDialogTheme">@style/Theme.CustomDialog.Black</item>
|
||||
</style>
|
||||
|
|
|
@ -9,7 +9,7 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:4.2.1'
|
||||
classpath 'com.android.tools.build:gradle:4.2.2'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
|
||||
|
||||
|
|
Loading…
Reference in a new issue