mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
443405ad40
commit
29b1d2c6ca
@ -32,6 +32,11 @@ class CrashLogsDialog : BaseDialogFragment(R.layout.dialog_recycler_view),
|
|||||||
private val viewModel by viewModels<CrashViewModel>()
|
private val viewModel by viewModels<CrashViewModel>()
|
||||||
private val adapter by lazy { LogAdapter() }
|
private val adapter by lazy { LogAdapter() }
|
||||||
|
|
||||||
|
override fun onStart() {
|
||||||
|
super.onStart()
|
||||||
|
setLayout(0.9f, ViewGroup.LayoutParams.WRAP_CONTENT)
|
||||||
|
}
|
||||||
|
|
||||||
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
binding.toolBar.setBackgroundColor(primaryColor)
|
binding.toolBar.setBackgroundColor(primaryColor)
|
||||||
binding.toolBar.setTitle(R.string.crash_log)
|
binding.toolBar.setTitle(R.string.crash_log)
|
||||||
|
Loading…
Reference in New Issue
Block a user