mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
Fix solid appbar bg when leaving recents to another tab
Caused by 48a4b3091
This commit is contained in:
parent
fe09262a66
commit
371b77e75f
@ -26,7 +26,6 @@ import androidx.appcompat.widget.Toolbar
|
|||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.core.graphics.ColorUtils
|
import androidx.core.graphics.ColorUtils
|
||||||
import androidx.core.view.GestureDetectorCompat
|
import androidx.core.view.GestureDetectorCompat
|
||||||
import androidx.core.view.isGone
|
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.bluelinelabs.conductor.Conductor
|
import com.bluelinelabs.conductor.Conductor
|
||||||
@ -361,7 +360,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
binding.toolbar.isVisible = !show
|
binding.toolbar.isVisible = !show
|
||||||
binding.cardFrame.isVisible = show
|
binding.cardFrame.isVisible = show
|
||||||
binding.appBar.setBackgroundColor(
|
binding.appBar.setBackgroundColor(
|
||||||
if (show && !solidBG && binding.tabsFrameLayout.isGone) Color.TRANSPARENT else getResourceColor(R.attr.colorSecondary)
|
if (show && !solidBG) Color.TRANSPARENT else getResourceColor(R.attr.colorSecondary)
|
||||||
)
|
)
|
||||||
currentToolbar?.setNavigationOnClickListener {
|
currentToolbar?.setNavigationOnClickListener {
|
||||||
val rootSearchController = router.backstack.lastOrNull()?.controller()
|
val rootSearchController = router.backstack.lastOrNull()?.controller()
|
||||||
|
Loading…
Reference in New Issue
Block a user