Commit 2171accc authored by wanglei's avatar wanglei

...bug

parent 6d67fd33
......@@ -86,8 +86,8 @@ class CameraUtils(
previewView.height
)
val display = previewView.display
LogEx.logDebug(TAG, "display=${display == null}")
//这里反正有概率为空,不清楚如何处理
val display = previewView.display ?: return
val rotation = display.rotation
......
......@@ -35,8 +35,12 @@ class HistoryFragment : BaseFragment<FragmentHistoryBinding>(FragmentHistoryBind
override fun initView() {
super.initView()
binding.flTop.updatePadding(top = BarUtils.getStatusBarHeight())
initAdapter()
}
override fun onResumeOneShoot() {
super.onResumeOneShoot()
initAdapter()
viewModel.initData()
}
......
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