feat: 优化代码

pull/379/head
kunfei 5 years ago
parent 274818598f
commit d860028a00
  1. 10
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -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 {

Loading…
Cancel
Save