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
c7e0f0d2
Commit
c7e0f0d2
authored
Aug 05, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改升级的方法
parent
dcd2fa00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
HomeFragment.kt
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
+3
-5
No files found.
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
View file @
c7e0f0d2
...
@@ -116,7 +116,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -116,7 +116,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
viewModel
.
authorized
(
""
,
currentLat
.
toString
(),
currentLon
.
toString
(),
false
)
viewModel
.
authorized
(
""
,
currentLat
.
toString
(),
currentLon
.
toString
(),
false
)
}
}
viewModel
.
getMapBean
()
viewModel
.
getMapBean
()
DialogUtils
.
showupgradevipDialog
(
requireContext
())
}
}
override
fun
initViewObservable
()
{
override
fun
initViewObservable
()
{
...
@@ -258,7 +257,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -258,7 +257,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
if
(
"CN"
.
equals
(
reverseGeoCodeResult
.
addressDetail
.
countryCodeIso2
)){
if
(
"CN"
.
equals
(
reverseGeoCodeResult
.
addressDetail
.
countryCodeIso2
)){
if
(
currentMapZoom
>=
15
){
if
(
currentMapZoom
>=
15
){
ToastUtils
.
showLong
(
"请充值升级会员"
)
var
zoom
=
13f
var
zoom
=
13f
// 默认 天安门
// 默认 天安门
val
center
=
LatLng
(
currentLat
,
currentLon
)
val
center
=
LatLng
(
currentLat
,
currentLon
)
...
@@ -266,12 +264,11 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -266,12 +264,11 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
val
builder
=
MapStatus
.
Builder
()
val
builder
=
MapStatus
.
Builder
()
builder
.
target
(
center
).
zoom
(
zoom
)
builder
.
target
(
center
).
zoom
(
zoom
)
val
mapStatusUpdate
=
MapStatusUpdateFactory
.
newMapStatus
(
builder
.
build
())
val
mapStatusUpdate
=
MapStatusUpdateFactory
.
newMapStatus
(
builder
.
build
())
showupgradevipDialog
(
requireContext
())
// 设置地图状态
// 设置地图状态
mBaiduMap
?.
animateMapStatus
(
mapStatusUpdate
,
200
)
mBaiduMap
?.
animateMapStatus
(
mapStatusUpdate
,
200
)
}
}
}
else
{
}
else
{
ToastUtils
.
showLong
(
"请充值升级会员"
)
var
zoom
=
13f
var
zoom
=
13f
// 默认 天安门
// 默认 天安门
val
center
=
LatLng
(
mCurrentLat
,
mCurrentLon
)
val
center
=
LatLng
(
mCurrentLat
,
mCurrentLon
)
...
@@ -279,7 +276,8 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
...
@@ -279,7 +276,8 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
val
builder
=
MapStatus
.
Builder
()
val
builder
=
MapStatus
.
Builder
()
builder
.
target
(
center
).
zoom
(
zoom
)
builder
.
target
(
center
).
zoom
(
zoom
)
val
mapStatusUpdate
=
MapStatusUpdateFactory
.
newMapStatus
(
builder
.
build
())
val
mapStatusUpdate
=
MapStatusUpdateFactory
.
newMapStatus
(
builder
.
build
())
// 设置地图状态
showupgradevipDialog
(
requireContext
())
// 设置地图状态
mBaiduMap
?.
animateMapStatus
(
mapStatusUpdate
,
500
)
mBaiduMap
?.
animateMapStatus
(
mapStatusUpdate
,
500
)
}
}
...
...
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