Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
a04040ed
Commit
a04040ed
authored
Jun 07, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 线上问题修复
parent
97efed67
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
27 deletions
+6
-27
build.gradle
build.gradle
+1
-1
config.gradle
config.gradle
+2
-2
YdlHomeFragment.kt
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+3
-22
BaseActivity.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
+0
-2
No files found.
build.gradle
View file @
a04040ed
...
...
@@ -76,7 +76,7 @@ apply plugin: 'modular-plugin'
modular
{
compileSdkVersion
2
7
compileSdkVersion
2
8
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
...
config.gradle
View file @
a04040ed
...
...
@@ -9,7 +9,7 @@ ext {
"m-consultant"
:
"0.0.60.27"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.26"
,
"m-home"
:
"0.0.23.
79
"
,
"m-home"
:
"0.0.23.
80
"
,
"m-im"
:
"0.0.21.51"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -98,7 +98,7 @@ ext {
"m-consultant"
:
"0.0.60.27"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.26"
,
"m-home"
:
"0.0.23.
79
"
,
"m-home"
:
"0.0.23.
80
"
,
"m-im"
:
"0.0.21.51"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
a04040ed
...
...
@@ -22,7 +22,6 @@ import com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.consultant.api.IConsultantService
import
com.yidianling.home.R
import
com.yidianling.home.adapter.YdlHomeAdapter
...
...
@@ -85,7 +84,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
*/
private
var
isFromCreate
:
Boolean
=
true
var
startTime
by
Delegates
.
notNull
<
Long
>
()
var
startTime
=
System
.
currentTimeMillis
()
var
endTime
by
Delegates
.
notNull
<
Long
>()
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
home_fragment_home_module
...
...
@@ -139,24 +138,6 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
}
/**
* 初始化状态栏位置
*/
// private fun initStatus() {
//
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {//4.4以下不支持状态栏变色
// val statusBarHeight = StatusBarUtils.getStatusBarHeight(activity)
// var homeTitleBarHeight = resources.getDimension(R.dimen.home_home_title_bar_height)
// val lp1 = view_search_toolbar_bg.layoutParams as RelativeLayout.LayoutParams
// lp1.height = (homeTitleBarHeight + statusBarHeight).toInt()
// view_search_toolbar_bg.layoutParams = lp1
//
// val lp2 = toolbar.layoutParams as CollapsingToolbarLayout.LayoutParams
// lp2.topMargin = statusBarHeight
// toolbar.layoutParams = lp2
// }
// }
override
fun
initDataAndEventLazy
()
{
}
...
...
@@ -374,12 +355,12 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
}
override
fun
onStop
()
{
super
.
onStop
()
endTime
=
System
.
currentTimeMillis
()
endTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_DWELL_TIME
,(
endTime
-
startTime
).
toString
())
}
override
fun
onResume
()
{
super
.
onResume
()
startTime
=
System
.
currentTimeMillis
()
startTime
=
System
.
currentTimeMillis
()
if
(
userVisibleHint
)
{
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
if
(
isFromCreate
)
{
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
View file @
a04040ed
...
...
@@ -10,7 +10,6 @@ import android.util.Log
import
android.view.View
import
android.view.ViewGroup
import
android.widget.FrameLayout
import
android.widget.LinearLayout
import
com.trello.rxlifecycle2.android.ActivityEvent
import
com.ydl.ydlcommon.R
import
com.ydl.ydlcommon.base.lifecycle.IActivityLifecycleable
...
...
@@ -19,7 +18,6 @@ import com.ydl.ydlcommon.ui.LoadingDialogFragment
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.AndroidSystemHelper
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.yidianling.common.tools.RxImageTool
import
io.reactivex.subjects.BehaviorSubject
import
io.reactivex.subjects.Subject
import
kotlin.properties.Delegates
...
...
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