viewBinding

pull/517/head
gedoor 4 years ago
parent da5622d298
commit 5801607f4c
  1. 2
      app/src/main/java/io/legado/app/base/BaseActivity.kt

@ -73,9 +73,9 @@ abstract class BaseActivity<VB : ViewBinding>(
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
window.decorView.disableAutoFill() window.decorView.disableAutoFill()
initTheme() initTheme()
setupSystemBar()
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(binding.root) setContentView(binding.root)
setupSystemBar()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
findViewById<TitleBar>(R.id.title_bar) findViewById<TitleBar>(R.id.title_bar)
?.onMultiWindowModeChanged(isInMultiWindowMode, fullScreen) ?.onMultiWindowModeChanged(isInMultiWindowMode, fullScreen)

Loading…
Cancel
Save