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
4fabe375
Commit
4fabe375
authored
May 28, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: bug fix
parent
0faf5ec0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
ConfideHomeActivity.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
+13
-1
IntroAdapter.kt
m-confide/src/main/java/com/ydl/confide/intro/IntroAdapter.kt
+2
-4
confide_home_activity.xml
m-confide/src/main/res/layout/confide_home_activity.xml
+9
-0
No files found.
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
View file @
4fabe375
...
...
@@ -58,6 +58,8 @@ import kotlinx.android.synthetic.main.confide_title_bar.*
@Route
(
path
=
ConfideRoute
.
R_CONFIDE_HOME
)
class
ConfideHomeActivity
:
BaseLceActivity
<
IConfideHomeContract
.
View
,
IConfideHomeContract
.
Presenter
>(),
IConfideHomeContract
.
View
,
XRecyclerView
.
LoadingListener
{
private
var
listenFree
=
false
override
fun
getContentViewId
():
Int
{
return
R
.
id
.
rv_list
}
...
...
@@ -208,12 +210,18 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
override
fun
onResume
()
{
super
.
onResume
()
handleFree
()
}
private
fun
handleFree
()
{
//登录了回来之后就不显示了
val
isLogin
=
(
findRouteService
(
IUserService
::
class
.
java
).
isLogin
())
findViewById
<
View
>(
R
.
id
.
confide_Free
).
visibility
=
if
(
isLogin
)
View
.
GONE
else
View
.
VISIBLE
if
(
isLogin
)
{
findViewById
<
View
>(
R
.
id
.
confideRed
).
visibility
=
if
(
listenFree
)
View
.
VISIBLE
else
View
.
GONE
}
}
/**
* 初始化状态栏位置
*/
...
...
@@ -463,6 +471,10 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
// rv_list.loadMoreComplete()
// }
mConfideAdapter
!!
.
notifyDataSetChanged
()
if
(!
bean
.
body
.
isNullOrEmpty
())
{
listenFree
=
true
//bean.body[0].listenFree ?: false
handleFree
()
}
}
/**
...
...
m-confide/src/main/java/com/ydl/confide/intro/IntroAdapter.kt
View file @
4fabe375
...
...
@@ -160,10 +160,8 @@ internal class IntroAdapter(
@OnLifecycleEvent
(
Lifecycle
.
Event
.
ON_PAUSE
)
private
fun
onPause
()
{
if
(
data
[
curPos
].
isVideo
)
{
val
ijkVideoView
=
videoViews
[
curPos
]
ijkVideoView
?.
pause
()
}
val
ijkVideoView
=
videoViews
[
curPos
]
ijkVideoView
?.
pause
()
}
fun
onSelect
(
position
:
Int
)
{
...
...
m-confide/src/main/res/layout/confide_home_activity.xml
View file @
4fabe375
...
...
@@ -89,6 +89,15 @@
android:textSize=
"13sp"
android:drawableRight=
"@drawable/confide_right_arrow"
/>
<ImageView
android:id=
"@+id/confideRed"
android:layout_width=
"@dimen/platform_dp_40"
android:layout_height=
"@dimen/confide_dp_25"
android:layout_gravity=
"right|top"
android:visibility=
"gone"
android:layout_marginEnd=
"10dp"
android:src=
"@drawable/confide__free"
/>
<TextView
android:id=
"@+id/confide_Free"
android:layout_width=
"wrap_content"
...
...
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