fix: broken function name
This commit is contained in:
parent
8e5e548e16
commit
eb2eae7d6c
2 changed files with 3 additions and 6 deletions
|
@ -135,7 +135,7 @@ fun logger(e: Any?, print: Boolean = true) {
|
|||
}
|
||||
|
||||
|
||||
fun initActivityTheme(a: Activity) {
|
||||
fun initActivity(a: Activity) {
|
||||
val window = a.window
|
||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||
val darkMode = PrefManager.getVal<Int>(PrefName.DarkMode)
|
||||
|
|
|
@ -22,9 +22,6 @@ import androidx.annotation.OptIn
|
|||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.core.animation.doOnEnd
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.WindowCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
import androidx.core.view.WindowInsetsControllerCompat
|
||||
import androidx.core.view.doOnAttach
|
||||
import androidx.core.view.updateLayoutParams
|
||||
import androidx.fragment.app.Fragment
|
||||
|
@ -209,7 +206,7 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
|
||||
binding.root.doOnAttach {
|
||||
initActivityTheme(this)
|
||||
initActivity(this)
|
||||
selectedOption = if (fragment != null) {
|
||||
when (fragment) {
|
||||
AnimeFragment::class.java.name -> 0
|
||||
|
@ -359,7 +356,7 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
initActivityTheme(this)
|
||||
initActivity(this)
|
||||
binding.includedNavbar.navbarContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
bottomMargin = navBarHeight
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue