Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_street
Commits
32cc14ed
Commit
32cc14ed
authored
Aug 05, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化homefragment 释放
parent
ff02d2c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
HomeFragment.kt
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
+1
-0
activity_detailed.xml
app/src/main/res/layout/activity_detailed.xml
+1
-0
No files found.
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
View file @
32cc14ed
...
...
@@ -307,6 +307,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
mSensorManager
?.
unregisterListener
(
this
)
// 退出时销毁定位
mLocClient
?.
stop
()
mSearch
?.
destroy
()
// 关闭定位图层
mBaiduMap
?.
isMyLocationEnabled
=
false
binding
.
bmapView
.
onDestroy
()
...
...
app/src/main/res/layout/activity_detailed.xml
View file @
32cc14ed
...
...
@@ -49,6 +49,7 @@
android:layout_height=
"wrap_content"
android:paddingLeft=
"15dp"
android:paddingTop=
"5dp"
android:paddingRight=
"15dp"
android:textSize=
"12sp"
android:text=
"巴黎嫩作为文化十字路口的历史可以追溯到数千年前。探索其古老的以及和自然奇观。"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment