Fixed a dependency conflict and lint
diff --git a/sample/build.gradle b/sample/build.gradle
index fce4355..9ca29a7 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -107,7 +107,7 @@
 
   testImplementation 'junit:junit:4.13.2'
 
-  androidTestImplementation 'androidx.test:core:1.4.0'
+  androidTestImplementation 'androidx.test:core:1.3.0'
   androidTestImplementation 'androidx.test.ext:junit:1.1.3'
   androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
   androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.4.0'
diff --git a/sample/src/main/kotlin/com/airbnb/lottie/samples/MainActivity.kt b/sample/src/main/kotlin/com/airbnb/lottie/samples/MainActivity.kt
index c36a34e..2c5e89a 100644
--- a/sample/src/main/kotlin/com/airbnb/lottie/samples/MainActivity.kt
+++ b/sample/src/main/kotlin/com/airbnb/lottie/samples/MainActivity.kt
@@ -1,7 +1,6 @@
 package com.airbnb.lottie.samples
 
 import android.os.Bundle
-import android.view.MenuItem
 import androidx.appcompat.app.AppCompatActivity
 import androidx.appcompat.app.AppCompatDelegate
 import androidx.browser.customtabs.CustomTabsIntent
@@ -9,28 +8,26 @@
 import androidx.fragment.app.Fragment
 import com.airbnb.lottie.samples.databinding.MainActivityBinding
 import com.airbnb.lottie.samples.utils.viewBinding
-import com.google.android.material.bottomnavigation.BottomNavigationView
 
-class MainActivity : AppCompatActivity(), BottomNavigationView.OnNavigationItemSelectedListener {
+class MainActivity : AppCompatActivity() {
     private val binding: MainActivityBinding by viewBinding()
 
     override fun onCreate(savedInstanceState: Bundle?) {
         AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
         super.onCreate(savedInstanceState)
-        binding.bottomNavigation.setOnNavigationItemSelectedListener(this)
-
-        savedInstanceState ?: showFragment(ShowcaseFragment())
-    }
-
-    override fun onNavigationItemSelected(item: MenuItem): Boolean {
-        when (item.itemId) {
-            R.id.showcase -> showFragment(ShowcaseFragment())
-            R.id.preview -> showFragment(PreviewFragment())
-            R.id.lottiefiles -> showFragment(LottiefilesFragment())
-            R.id.learn -> showShowcase()
-            else -> return false
+        binding.bottomNavigation.setOnItemSelectedListener listener@{ item ->
+            when (item.itemId) {
+                R.id.showcase -> showFragment(ShowcaseFragment())
+                R.id.preview -> showFragment(PreviewFragment())
+                R.id.lottiefiles -> showFragment(LottiefilesFragment())
+                R.id.learn -> showShowcase()
+            }
+            true
         }
-        return true
+
+        if (savedInstanceState == null) {
+            showFragment(ShowcaseFragment())
+        }
     }
 
     private fun showShowcase() {
@@ -40,7 +37,7 @@
 
     private fun showFragment(fragment: Fragment) {
         supportFragmentManager.beginTransaction()
-                .replace(R.id.content, fragment)
-                .commit()
+            .replace(R.id.content, fragment)
+            .commit()
     }
 }