ReaderActivity Lint fixes

This commit is contained in:
Jays2Kings 2021-04-18 00:28:32 -04:00
parent 82f711d62c
commit 2661cd6e2e

View File

@ -575,7 +575,12 @@ class ReaderActivity :
binding.appBar.setBackgroundColor(primaryColor) binding.appBar.setBackgroundColor(primaryColor)
window.statusBarColor = Color.TRANSPARENT window.statusBarColor = Color.TRANSPARENT
supportActionBar?.setDisplayHomeAsUpEnabled(true) supportActionBar?.setDisplayHomeAsUpEnabled(true)
binding.toolbar.navigationIcon?.setTint(ContextCompat.getColor(this, R.color.tint_color_secondary)) binding.toolbar.navigationIcon?.setTint(
ContextCompat.getColor(
this,
R.color.tint_color_secondary
)
)
binding.toolbar.setNavigationOnClickListener { binding.toolbar.setNavigationOnClickListener {
popToMain() popToMain()
} }
@ -622,7 +627,8 @@ class ReaderActivity :
0.5f 0.5f
) )
popup.menu.forEach { popup.menu.forEach {
it.icon = ContextCompat.getDrawable(this@ReaderActivity, R.drawable.ic_blank_24dp) it.icon =
ContextCompat.getDrawable(this@ReaderActivity, R.drawable.ic_blank_24dp)
} }
popup.menu.getItem(presenter.manga?.viewer ?: 0)?.let { menuItem -> popup.menu.getItem(presenter.manga?.viewer ?: 0)?.let { menuItem ->
menuItem.icon = menuItem.icon =