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
4f3fa81f
Commit
4f3fa81f
authored
Jul 27, 2021
by
张释方
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_1.0.0' of
http://gitlab.mints-id.com/android/android_street
into branche_zsf
parents
ff04eb7e
9c0bfa8f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
build.gradle
app/build.gradle
+1
-4
MainActivity.kt
app/src/main/java/com/mints/street/main/MainActivity.kt
+0
-12
HomeFragment.kt
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
+3
-4
build.gradle
library_base/build.gradle
+5
-0
BaseActivity.java
...ry_base/src/main/java/com/fry/base/base/BaseActivity.java
+6
-0
BaseFragment.java
...ry_base/src/main/java/com/fry/base/base/BaseFragment.java
+7
-1
No files found.
app/build.gradle
View file @
4f3fa81f
...
...
@@ -168,10 +168,7 @@ dependencies {
implementation
project
(
':shareSdkLib'
)
// 应用管理中心分包
implementation
(
name:
'humesdk-1.0.0'
,
ext:
'aar'
)
// umeng
implementation
'com.umeng.umsdk:common:9.3.8'
// 必选
implementation
'com.umeng.umsdk:asms:1.2.3'
// 必选
implementation
'com.umeng.umsdk:apm:1.3.1'
// 穿山甲 GroMore
// mediation_ad_sdk
implementation
(
name:
'mediation_ad_sdk_2.8.1.0'
,
ext:
'aar'
)
...
...
app/src/main/java/com/mints/street/main/MainActivity.kt
View file @
4f3fa81f
...
...
@@ -78,19 +78,7 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
}
override
fun
onResume
()
{
super
.
onResume
()
// 友盟
MobclickAgent
.
onResume
(
this
)
}
override
fun
onPause
()
{
super
.
onPause
()
// 友盟
MobclickAgent
.
onPause
(
this
)
}
var
oldTime
:
Long
=
0
override
fun
onKeyDown
(
keyCode
:
Int
,
event
:
KeyEvent
):
Boolean
{
...
...
app/src/main/java/com/mints/street/main/home/HomeFragment.kt
View file @
4f3fa81f
...
...
@@ -160,14 +160,14 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
currentLon
=
status
?.
target
?.
longitude
?:
0.0
mRecommendStopSearch
?.
requestRecommendStop
(
RecommendStopSearchOption
().
location
(
center
LatLng
(
currentLat
,
currentLat
)
)
)
}
})
mBaiduMap
?.
setOnMapLoadedCallback
{
mRecommendStopSearch
?.
requestRecommendStop
(
RecommendStopSearchOption
().
location
(
center
))
mRecommendStopSearch
?.
requestRecommendStop
(
RecommendStopSearchOption
().
location
(
LatLng
(
currentLat
,
currentLat
)
))
}
//使地图缩放级别增大一级
binding
.
imageIn
.
setOnClickListener
{
...
...
@@ -183,7 +183,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
}
mRecommendStopSearch
=
RecommendStopSearch
.
newInstance
()
mRecommendStopSearch
?.
setOnGetRecommendStopResultListener
{
result
->
result
if
(
result
!=
null
)
{
addMarkerToMap
(
result
.
recommendStopInfoList
)
}
...
...
library_base/build.gradle
View file @
4f3fa81f
...
...
@@ -71,4 +71,9 @@ dependencies {
//万能布局管理器VirtualLayout
api
'com.alibaba.android:vlayout:1.0.9'
// umeng
api
'com.umeng.umsdk:common:9.3.8'
// 必选
api
'com.umeng.umsdk:asms:1.2.3'
// 必选
api
'com.umeng.umsdk:apm:1.3.1'
}
library_base/src/main/java/com/fry/base/base/BaseActivity.java
View file @
4f3fa81f
...
...
@@ -19,6 +19,7 @@ import androidx.lifecycle.Observer;
import
com.fry.base.R
;
import
com.fry.base.ui.widget.ViewStatusLayout
;
import
com.umeng.analytics.MobclickAgent
;
import
me.goldze.mvvmhabit._enum.ViewStatus
;
import
me.goldze.mvvmhabit.base.BaseViewModel
;
...
...
@@ -199,10 +200,15 @@ public abstract class BaseActivity<V extends ViewDataBinding, VM extends BaseVie
@Override
protected
void
onResume
()
{
super
.
onResume
();
// 友盟
MobclickAgent
.
onResume
(
this
);
}
@Override
protected
void
onPause
()
{
super
.
onPause
();
// 友盟
MobclickAgent
.
onPause
(
this
);
}
}
library_base/src/main/java/com/fry/base/base/BaseFragment.java
View file @
4f3fa81f
...
...
@@ -14,6 +14,7 @@ import androidx.lifecycle.Observer;
import
com.fry.base.R
;
import
com.fry.base.ui.widget.ViewStatusLayout
;
import
com.umeng.analytics.MobclickAgent
;
import
me.goldze.mvvmhabit._enum.ViewStatus
;
import
me.goldze.mvvmhabit.base.BaseViewModel
;
...
...
@@ -148,14 +149,16 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie
public
void
onFirstUserVisible
()
{
super
.
onFirstUserVisible
();
if
(
needStatistics
())
{
MobclickAgent
.
onPageStart
(
getClass
().
getName
());
}
}
@CallSuper
@Override
public
void
onUserVisible
()
{
super
.
onUserVisible
();
if
(
needStatistics
())
{
MobclickAgent
.
onPageStart
(
getClass
().
getName
());
}
}
...
...
@@ -164,6 +167,7 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie
public
void
onFirstUserInvisible
()
{
super
.
onFirstUserInvisible
();
if
(
needStatistics
())
{
MobclickAgent
.
onPageEnd
(
getClass
().
getName
());
}
}
...
...
@@ -172,6 +176,8 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie
public
void
onUserInvisible
()
{
super
.
onUserInvisible
();
if
(
needStatistics
())
{
MobclickAgent
.
onPageEnd
(
getClass
().
getName
());
}
}
...
...
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