Răsfoiți Sursa

Updated material library to 1.4.0

Vadik Sirekanyan 4 ani în urmă
părinte
comite
b75c6aa4b7

+ 1 - 1
app/build.gradle.kts

@@ -63,7 +63,7 @@ dependencies {
     implementation("com.squareup.okhttp3:logging-interceptor:3.14.9")
 
     // etc
-    implementation("com.google.android.material:material:1.2.1")
+    implementation("com.google.android.material:material:1.4.0")
     implementation("com.github.bumptech.glide:glide:4.11.0")
 
     // crash reporting

+ 2 - 2
app/src/main/java/com/sirekanyan/knigopis/feature/MainView.kt

@@ -148,13 +148,13 @@ class MainViewImpl(
     override fun showNavigation(isVisible: Boolean) {
         if (isVisible) {
             bottomNavigation.show()
-            bottomNavigation.setOnNavigationItemSelectedListener { item ->
+            bottomNavigation.setOnItemSelectedListener { item ->
                 callbacks.onNavigationClicked(item.itemId)
                 true
             }
         } else {
             bottomNavigation.hide()
-            bottomNavigation.setOnNavigationItemSelectedListener(null)
+            bottomNavigation.setOnItemSelectedListener(null)
         }
     }