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
50cd0d65
Commit
50cd0d65
authored
Jun 07, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'd/v4.0.51_xlzx' into 'release'
D/v4.0.51 xlzx See merge request app_android_lib/YDL-Component!133
parents
400d2004
a04040ed
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
79 additions
and
59 deletions
+79
-59
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+1
-0
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+2
-2
common_dialog_default_in.xml
app/src/main/res/anim/common_dialog_default_in.xml
+20
-0
common_dialog_default_out.xml
app/src/main/res/anim/common_dialog_default_out.xml
+22
-0
build.gradle
build.gradle
+1
-1
config.gradle
config.gradle
+4
-4
styles.xml
m-home/src/main/res/values/styles.xml
+2
-8
YdlHomeFragment.kt
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+4
-23
HomeButtonBannerView.kt
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeButtonBannerView.kt
+1
-1
HomeConfideExpertInfoView.kt
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeConfideExpertInfoView.kt
+3
-3
MeditationTypeAdapter.kt
m-home/src/ydl/java/com/yidianling/home/adapter/MeditationTypeAdapter.kt
+4
-4
MeditationViewPagerAdapter.kt
m-home/src/ydl/java/com/yidianling/home/adapter/MeditationViewPagerAdapter.kt
+3
-2
HomeMuseView.kt
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeMuseView.kt
+1
-1
AdaptiveVideoView.kt
m-home/src/ydl/java/com/yidianling/home/widget/AdaptiveVideoView.kt
+0
-0
home_layout_meditation_entrance.xml
m-home/src/ydl/res/layout/home_layout_meditation_entrance.xml
+0
-0
home_layout_meditation_item.xml
m-home/src/ydl/res/layout/home_layout_meditation_item.xml
+0
-0
home_layout_meditation_more_type.xml
m-home/src/ydl/res/layout/home_layout_meditation_more_type.xml
+0
-0
styles.xml
m-home/src/ydl/res/values/styles.xml
+11
-0
MeditationWindowService.kt
m-muse/src/main/java/com/yidianling/muse/service/MeditationWindowService.kt
+0
-8
BaseActivity.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
+0
-2
No files found.
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
50cd0d65
...
@@ -291,6 +291,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -291,6 +291,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
}
}
@SuppressLint
(
"MissingSuperCall"
)
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
if
(
serviceConnection
!=
null
)
{
if
(
serviceConnection
!=
null
)
{
unbindService
(
serviceConnection
)
unbindService
(
serviceConnection
)
...
...
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
50cd0d65
...
@@ -21,9 +21,9 @@ import java.util.List;
...
@@ -21,9 +21,9 @@ import java.util.List;
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
String
APP_DOMAIN
=
"https://api.github.com/"
;
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_TEST
;
//
public static String appEnv = YDLConstants.ENV_TEST;
// public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库
// public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库
//
public static String appEnv = YDLConstants.ENV_PROD;
public
static
String
appEnv
=
YDLConstants
.
ENV_PROD
;
@Override
@Override
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
lifecycles
.
add
(
new
DemoAppLifecycles
());
lifecycles
.
add
(
new
DemoAppLifecycles
());
...
...
app/src/main/res/anim/common_dialog_default_in.xml
0 → 100644
View file @
50cd0d65
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:android=
"http://schemas.android.com/apk/res/android"
tools:ignore=
"ResourceName"
>
<alpha
android:fromAlpha=
"0.0"
android:toAlpha=
"1.0"
android:duration=
"600"
/>
<scale
android:pivotX=
"50%"
android:pivotY=
"50%"
android:fromXScale=
"0.0"
android:toXScale=
"1.0"
android:fromYScale=
"0.0"
android:toYScale=
"1.0"
android:duration=
"600"
/>
</set>
\ No newline at end of file
app/src/main/res/anim/common_dialog_default_out.xml
0 → 100644
View file @
50cd0d65
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:android=
"http://schemas.android.com/apk/res/android"
tools:ignore=
"ResourceName"
>
<alpha
android:duration=
"300"
android:fromAlpha=
"1.0"
android:toAlpha=
"0.0"
/>
<!--
<scale
android:pivotX="50%"
android:pivotY="50%"
android:fromXScale="1.0"
android:toXScale="0.0"
android:fromYScale="1.0"
android:toYScale="0.0"
android:duration="500"/>
-->
</set>
\ No newline at end of file
build.gradle
View file @
50cd0d65
...
@@ -76,7 +76,7 @@ apply plugin: 'modular-plugin'
...
@@ -76,7 +76,7 @@ apply plugin: 'modular-plugin'
modular
{
modular
{
compileSdkVersion
2
7
compileSdkVersion
2
8
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
...
config.gradle
View file @
50cd0d65
...
@@ -9,7 +9,7 @@ ext {
...
@@ -9,7 +9,7 @@ ext {
"m-consultant"
:
"0.0.60.27"
,
"m-consultant"
:
"0.0.60.27"
,
"m-fm"
:
"0.0.30.09"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.26"
,
"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-im"
:
"0.0.21.51"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
...
@@ -26,7 +26,7 @@ ext {
...
@@ -26,7 +26,7 @@ ext {
"m-fm-api"
:
"0.0.3"
,
"m-fm-api"
:
"0.0.3"
,
"m-muse-api"
:
"0.0.1"
,
"m-muse-api"
:
"0.0.1"
,
"m-tests-api"
:
"0.0.2"
,
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.
19
"
,
"m-user-api"
:
"0.0.10.
21
"
,
"m-home-api"
:
"0.0.4.2"
,
"m-home-api"
:
"0.0.4.2"
,
"m-im-api"
:
"0.0.12.24"
,
"m-im-api"
:
"0.0.12.24"
,
"m-dynamic-api"
:
"0.0.3.71"
,
"m-dynamic-api"
:
"0.0.3.71"
,
...
@@ -98,7 +98,7 @@ ext {
...
@@ -98,7 +98,7 @@ ext {
"m-consultant"
:
"0.0.60.27"
,
"m-consultant"
:
"0.0.60.27"
,
"m-fm"
:
"0.0.30.09"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.26"
,
"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-im"
:
"0.0.21.51"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.8"
,
"m-article"
:
"0.0.0.8"
,
...
@@ -114,7 +114,7 @@ ext {
...
@@ -114,7 +114,7 @@ ext {
"m-fm-api"
:
"0.0.3"
,
"m-fm-api"
:
"0.0.3"
,
"m-muse-api"
:
"0.0.1"
,
"m-muse-api"
:
"0.0.1"
,
"m-tests-api"
:
"0.0.2"
,
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.
19
"
,
"m-user-api"
:
"0.0.10.
21
"
,
"m-home-api"
:
"0.0.4.2"
,
"m-home-api"
:
"0.0.4.2"
,
"m-im-api"
:
"0.0.12.24"
,
"m-im-api"
:
"0.0.12.24"
,
"m-dynamic-api"
:
"0.0.3.71"
,
"m-dynamic-api"
:
"0.0.3.71"
,
...
...
m-home/src/main/res/values/styles.xml
View file @
50cd0d65
...
@@ -11,13 +11,6 @@
...
@@ -11,13 +11,6 @@
<item
name=
"colorAccent"
>
@color/platform_main_theme
</item>
<item
name=
"colorAccent"
>
@color/platform_main_theme
</item>
</style>
</style>
<style
name=
"MeditationTabLayoutStyle"
parent=
"Widget.Design.TabLayout"
>
<item
name=
"tabIndicatorColor"
>
@color/white
</item>
<item
name=
"tabIndicatorHeight"
>
2dp
</item>
<item
name=
"tabIndicatorFullWidth"
>
false
</item>
<item
name=
"tabSelectedTextColor"
>
@color/white
</item>
<item
name=
"android:textSize"
>
16sp
</item>
<item
name=
"android:textColor"
>
@color/white_60
</item>
</style>
</resources>
</resources>
\ No newline at end of file
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
50cd0d65
...
@@ -22,7 +22,6 @@ import com.ydl.ydlcommon.utils.StatusBarUtils
...
@@ -22,7 +22,6 @@ import com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.consultant.api.IConsultantService
import
com.yidianling.consultant.api.IConsultantService
import
com.yidianling.home.R
import
com.yidianling.home.R
import
com.yidianling.home.adapter.YdlHomeAdapter
import
com.yidianling.home.adapter.YdlHomeAdapter
...
@@ -85,7 +84,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -85,7 +84,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
*/
*/
private
var
isFromCreate
:
Boolean
=
true
private
var
isFromCreate
:
Boolean
=
true
var
startTime
by
Delegates
.
notNull
<
Long
>
()
var
startTime
=
System
.
currentTimeMillis
()
var
endTime
by
Delegates
.
notNull
<
Long
>()
var
endTime
by
Delegates
.
notNull
<
Long
>()
override
fun
layoutResId
():
Int
{
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
home_fragment_home_module
return
R
.
layout
.
home_fragment_home_module
...
@@ -139,24 +138,6 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -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
()
{
override
fun
initDataAndEventLazy
()
{
}
}
...
@@ -236,7 +217,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -236,7 +217,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
//展示弹窗
//展示弹窗
if
(
aa
==
null
)
{
if
(
aa
==
null
)
{
//99元3小时弹出事件
//99元3小时弹出事件
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_POPUPWINDOWS_PAGE_POPUP
,
act
.
title
)
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_POPUPWINDOWS_PAGE_POPUP
,
act
?.
title
?:
"1"
)
aa
=
ActivityDialog
(
mActivity
!!
,
act
.
imageBanner
,
act
.
linkUrl
,
act
.
title
)
aa
=
ActivityDialog
(
mActivity
!!
,
act
.
imageBanner
,
act
.
linkUrl
,
act
.
title
)
aa
?.
show
()
aa
?.
show
()
aa
?.
setOnDismissListener
{
aa
?.
setOnDismissListener
{
...
@@ -374,12 +355,12 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -374,12 +355,12 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
}
}
override
fun
onStop
()
{
override
fun
onStop
()
{
super
.
onStop
()
super
.
onStop
()
endTime
=
System
.
currentTimeMillis
()
endTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_DWELL_TIME
,(
endTime
-
startTime
).
toString
())
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_HOME_DWELL_TIME
,(
endTime
-
startTime
).
toString
())
}
}
override
fun
onResume
()
{
override
fun
onResume
()
{
super
.
onResume
()
super
.
onResume
()
startTime
=
System
.
currentTimeMillis
()
startTime
=
System
.
currentTimeMillis
()
if
(
userVisibleHint
)
{
if
(
userVisibleHint
)
{
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
if
(
isFromCreate
)
{
if
(
isFromCreate
)
{
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeButtonBannerView.kt
View file @
50cd0d65
...
@@ -45,7 +45,7 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
...
@@ -45,7 +45,7 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
homeEvent
?.
askMoreClick
()
homeEvent
?.
askMoreClick
()
}
}
homeModuleButtonBannerThird
.
setOnClickListener
{
homeModuleButtonBannerThird
.
setOnClickListener
{
homeEvent
?.
nowConfideClick
()
homeEvent
?.
nowConfideClick
(
false
)
}
}
homeModuleButtonBannerFourth
.
setOnClickListener
{
homeModuleButtonBannerFourth
.
setOnClickListener
{
homeEvent
?.
psychologyTestClick
()
homeEvent
?.
psychologyTestClick
()
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeConfideExpertInfoView.kt
View file @
50cd0d65
...
@@ -74,11 +74,11 @@ class HomeConfideExpertInfoView(
...
@@ -74,11 +74,11 @@ class HomeConfideExpertInfoView(
view_line
.
visibility
=
View
.
VISIBLE
view_line
.
visibility
=
View
.
VISIBLE
}
}
this
.
setOnClickListener
{
this
.
setOnClickListener
{
homeEvent
!!
.
confideClick
(
bean
.
linkUrl
,
bean
.
doctorId
)
homeEvent
?.
confideClick
(
bean
.
linkUrl
,
bean
.
confidedId
.
toString
(),
bean
.
doctorId
,
bean
.
uid
.
toString
()
)
}
}
iv_confide_voice
.
setOnClickListener
{
iv_confide_voice
.
setOnClickListener
{
homeEvent
!!
.
confidePlayClick
(
iv_confide_voice
,
bean
)
homeEvent
?
.
confidePlayClick
(
iv_confide_voice
,
bean
)
}
}
}
}
...
@@ -147,7 +147,7 @@ class HomeConfideExpertInfoView(
...
@@ -147,7 +147,7 @@ class HomeConfideExpertInfoView(
if
(
bodyBean
.
confideLine
==
2
)
{
//喊他上线 私聊
if
(
bodyBean
.
confideLine
==
2
)
{
//喊他上线 私聊
homeEvent
!!
.
toChatForMsg
(
bodyBean
.
uid
.
toString
())
homeEvent
!!
.
toChatForMsg
(
bodyBean
.
uid
.
toString
())
}
else
{
}
else
{
homeEvent
!!
.
confideClick
(
bodyBean
.
linkUrl
,
bodyBean
.
doctorId
)
homeEvent
!!
.
confideClick
(
bodyBean
.
linkUrl
,
bodyBean
.
confidedId
.
toString
(),
bodyBean
.
doctorId
,
bodyBean
.
uid
.
toString
()
)
}
}
}
}
}
}
...
...
m-home/src/
main/java/com/yidianling/home
/MeditationTypeAdapter.kt
→
m-home/src/
ydl/java/com/yidianling/home/adapter
/MeditationTypeAdapter.kt
View file @
50cd0d65
package
com.yidianling.home
package
com.yidianling.home
.adapter
//import com.ydl.ydlcommon.router.IYDLRouterConstant.Companion.ROUTER_MUSE_PLAY
import
android.content.Context
import
android.content.Context
import
android.view.LayoutInflater
import
android.view.LayoutInflater
import
android.view.View
import
android.view.View
...
@@ -18,6 +17,7 @@ import com.ydl.webview.NewH5Activity
...
@@ -18,6 +17,7 @@ import com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.home.R
import
com.yidianling.home.constants.HomeBIConstants
import
com.yidianling.home.constants.HomeBIConstants
import
com.yidianling.home.model.bean.MeditationModuleBean
import
com.yidianling.home.model.bean.MeditationModuleBean
import
com.yidianling.user.api.service.IUserService
import
com.yidianling.user.api.service.IUserService
...
@@ -39,13 +39,13 @@ class MeditationTypeAdapter(
...
@@ -39,13 +39,13 @@ class MeditationTypeAdapter(
CONTENT_TYPE
->
{
CONTENT_TYPE
->
{
MeditationTypeViewHolder
(
MeditationTypeViewHolder
(
LayoutInflater
.
from
(
context
)
LayoutInflater
.
from
(
context
)
.
inflate
(
R
.
layout
.
layout_meditation_item
,
parent
,
false
)
.
inflate
(
R
.
layout
.
home_
layout_meditation_item
,
parent
,
false
)
)
)
}
}
else
->
{
else
->
{
MeditationTypeMoreViewHolder
(
MeditationTypeMoreViewHolder
(
LayoutInflater
.
from
(
context
)
LayoutInflater
.
from
(
context
)
.
inflate
(
R
.
layout
.
layout_meditation_more_type
,
parent
,
false
)
.
inflate
(
R
.
layout
.
home_
layout_meditation_more_type
,
parent
,
false
)
)
)
}
}
}
}
...
...
m-home/src/
main/java/com/yidianling/home
/MeditationViewPagerAdapter.kt
→
m-home/src/
ydl/java/com/yidianling/home/adapter
/MeditationViewPagerAdapter.kt
View file @
50cd0d65
package
com.yidianling.home
package
com.yidianling.home
.adapter
import
android.content.Context
import
android.content.Context
import
android.view.LayoutInflater
import
android.view.LayoutInflater
...
@@ -6,6 +6,7 @@ import android.view.View
...
@@ -6,6 +6,7 @@ import android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
com.yidianling.home.R
import
com.yidianling.home.model.bean.MeditationModuleBean
import
com.yidianling.home.model.bean.MeditationModuleBean
class
MeditationViewPagerAdapter
(
private
val
context
:
Context
,
private
val
data
:
class
MeditationViewPagerAdapter
(
private
val
context
:
Context
,
private
val
data
:
...
@@ -14,7 +15,7 @@ class MeditationViewPagerAdapter(private val context: Context, private val data:
...
@@ -14,7 +15,7 @@ class MeditationViewPagerAdapter(private val context: Context, private val data:
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
MeditationViewPagerViewHolder
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
MeditationViewPagerViewHolder
{
return
MeditationViewPagerViewHolder
(
LayoutInflater
return
MeditationViewPagerViewHolder
(
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
layout_meditation_entrance
,
parent
,
false
))
.
from
(
context
).
inflate
(
R
.
layout
.
home_
layout_meditation_entrance
,
parent
,
false
))
}
}
override
fun
onBindViewHolder
(
holder
:
MeditationViewPagerViewHolder
,
position
:
Int
)
{
override
fun
onBindViewHolder
(
holder
:
MeditationViewPagerViewHolder
,
position
:
Int
)
{
...
...
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeMuseView.kt
View file @
50cd0d65
...
@@ -18,7 +18,7 @@ import com.ydl.webview.H5Params
...
@@ -18,7 +18,7 @@ import com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.home.MeditationViewPagerAdapter
import
com.yidianling.home.
adapter.
MeditationViewPagerAdapter
import
com.yidianling.home.R
import
com.yidianling.home.R
import
com.yidianling.home.constants.HomeBIConstants
import
com.yidianling.home.constants.HomeBIConstants
import
com.yidianling.home.constract.HomeViewConfig
import
com.yidianling.home.constract.HomeViewConfig
...
...
m-home/src/
main
/java/com/yidianling/home/widget/AdaptiveVideoView.kt
→
m-home/src/
ydl
/java/com/yidianling/home/widget/AdaptiveVideoView.kt
View file @
50cd0d65
File moved
m-home/src/ydl/res/layout/layout_meditation_entrance.xml
→
m-home/src/ydl/res/layout/
home_
layout_meditation_entrance.xml
View file @
50cd0d65
File moved
m-home/src/ydl/res/layout/layout_meditation_item.xml
→
m-home/src/ydl/res/layout/
home_
layout_meditation_item.xml
View file @
50cd0d65
File moved
m-home/src/ydl/res/layout/layout_meditation_more_type.xml
→
m-home/src/ydl/res/layout/
home_
layout_meditation_more_type.xml
View file @
50cd0d65
File moved
m-home/src/ydl/res/values/styles.xml
View file @
50cd0d65
...
@@ -10,4 +10,14 @@
...
@@ -10,4 +10,14 @@
<style
name=
"activityDialog"
parent=
"NoTitleTheme"
>
<style
name=
"activityDialog"
parent=
"NoTitleTheme"
>
<item
name=
"android:windowIsTranslucent"
>
true
</item>
<item
name=
"android:windowIsTranslucent"
>
true
</item>
</style>
</style>
<style
name=
"MeditationTabLayoutStyle"
parent=
"Widget.Design.TabLayout"
>
<item
name=
"tabIndicatorColor"
>
@color/white
</item>
<item
name=
"tabIndicatorHeight"
>
2dp
</item>
<item
name=
"tabIndicatorFullWidth"
>
false
</item>
<item
name=
"tabSelectedTextColor"
>
@color/white
</item>
<item
name=
"android:textSize"
>
16sp
</item>
<item
name=
"android:textColor"
>
@color/white_60
</item>
</style>
</resources>
</resources>
\ No newline at end of file
m-muse/src/main/java/com/yidianling/muse/service/MeditationWindowService.kt
View file @
50cd0d65
...
@@ -316,14 +316,6 @@ class MeditationWindowService : Service() {
...
@@ -316,14 +316,6 @@ class MeditationWindowService : Service() {
}
}
override
fun
onStartCommand
(
intent
:
Intent
?,
flags
:
Int
,
startId
:
Int
):
Int
{
override
fun
onStartCommand
(
intent
:
Intent
?,
flags
:
Int
,
startId
:
Int
):
Int
{
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// val manager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
// val channel = NotificationChannel("壹点灵", "play", NotificationManager.IMPORTANCE_HIGH)
// manager.createNotificationChannel(channel)
// val notification = NotificationCompat.Builder(this, "壹点灵").build()
// startForeground(1, notification)
// }
return
super
.
onStartCommand
(
intent
,
flags
,
startId
)
return
super
.
onStartCommand
(
intent
,
flags
,
startId
)
}
}
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/BaseActivity.kt
View file @
50cd0d65
...
@@ -10,7 +10,6 @@ import android.util.Log
...
@@ -10,7 +10,6 @@ import android.util.Log
import
android.view.View
import
android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.FrameLayout
import
android.widget.FrameLayout
import
android.widget.LinearLayout
import
com.trello.rxlifecycle2.android.ActivityEvent
import
com.trello.rxlifecycle2.android.ActivityEvent
import
com.ydl.ydlcommon.R
import
com.ydl.ydlcommon.R
import
com.ydl.ydlcommon.base.lifecycle.IActivityLifecycleable
import
com.ydl.ydlcommon.base.lifecycle.IActivityLifecycleable
...
@@ -19,7 +18,6 @@ import com.ydl.ydlcommon.ui.LoadingDialogFragment
...
@@ -19,7 +18,6 @@ import com.ydl.ydlcommon.ui.LoadingDialogFragment
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.AndroidSystemHelper
import
com.ydl.ydlcommon.utils.AndroidSystemHelper
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.yidianling.common.tools.RxImageTool
import
io.reactivex.subjects.BehaviorSubject
import
io.reactivex.subjects.BehaviorSubject
import
io.reactivex.subjects.Subject
import
io.reactivex.subjects.Subject
import
kotlin.properties.Delegates
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