Commit 32cc14ed authored by mengcuiguang2's avatar mengcuiguang2

优化homefragment 释放

parent ff02d2c2
......@@ -307,6 +307,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
mSensorManager?.unregisterListener(this)
// 退出时销毁定位
mLocClient?.stop()
mSearch?.destroy()
// 关闭定位图层
mBaiduMap?.isMyLocationEnabled = false
binding.bmapView.onDestroy()
......
......@@ -49,6 +49,7 @@
android:layout_height="wrap_content"
android:paddingLeft="15dp"
android:paddingTop="5dp"
android:paddingRight="15dp"
android:textSize="12sp"
android:text="巴黎嫩作为文化十字路口的历史可以追溯到数千年前。探索其古老的以及和自然奇观。" />
......
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