Commit d8b1d798 authored by Viktor De Pasquale's avatar Viktor De Pasquale Committed by John Wu

Fixed first title being partially obscured by toolbar

parent feb0f4b7
package com.topjohnwu.magisk.ui.settings
import android.os.Bundle
import android.view.View
import com.topjohnwu.magisk.R
import com.topjohnwu.magisk.databinding.FragmentSettingsMd2Binding
import com.topjohnwu.magisk.ktx.setOnViewReadyListener
import com.topjohnwu.magisk.ui.base.BaseUIFragment
import org.koin.androidx.viewmodel.ext.android.viewModel
......@@ -16,6 +19,13 @@ class SettingsFragment : BaseUIFragment<SettingsViewModel, FragmentSettingsMd2Bi
activity.title = resources.getString(R.string.settings)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.settingsList.setOnViewReadyListener {
binding.settingsList.scrollToPosition(0)
}
}
override fun onResume() {
super.onResume()
viewModel.items.forEach { it.refresh() }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment