|
|
|
@ -3,8 +3,6 @@ package io.legado.app.ui.main |
|
|
|
|
import android.os.Bundle |
|
|
|
|
import android.view.KeyEvent |
|
|
|
|
import android.view.MenuItem |
|
|
|
|
import androidx.core.view.forEach |
|
|
|
|
import androidx.core.view.forEachIndexed |
|
|
|
|
import androidx.fragment.app.Fragment |
|
|
|
|
import androidx.fragment.app.FragmentManager |
|
|
|
|
import androidx.fragment.app.FragmentStatePagerAdapter |
|
|
|
@ -96,14 +94,6 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main), |
|
|
|
|
bottom_navigation_view.menu.getItem(3).isChecked = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// bottom_navigation_view.menu.forEachIndexed { index, item -> |
|
|
|
|
// if (item.isChecked) |
|
|
|
|
// item.icon = getDrawable(res[1][index]) |
|
|
|
|
// else |
|
|
|
|
// item.icon = getDrawable(res[0][index]) |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean { |
|
|
|
|