|
|
|
@ -12,6 +12,7 @@ import android.view.View |
|
|
|
|
import android.widget.FrameLayout |
|
|
|
|
import androidx.appcompat.app.AppCompatActivity |
|
|
|
|
import androidx.viewbinding.ViewBinding |
|
|
|
|
import io.legado.app.App |
|
|
|
|
import io.legado.app.R |
|
|
|
|
import io.legado.app.constant.AppConst |
|
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
@ -99,6 +100,13 @@ abstract class BaseActivity<VB : ViewBinding>( |
|
|
|
|
observeLiveBus() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onWindowFocusChanged(hasFocus: Boolean) { |
|
|
|
|
super.onWindowFocusChanged(hasFocus) |
|
|
|
|
if (hasFocus) { |
|
|
|
|
App.navigationBarHeight = navigationBarHeight |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean, newConfig: Configuration?) { |
|
|
|
|
super.onMultiWindowModeChanged(isInMultiWindowMode, newConfig) |
|
|
|
|
findViewById<TitleBar>(R.id.title_bar) |
|
|
|
|