Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
95043aa9
Commit
95043aa9
authored
Dec 24, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
听书列表布局错误修复
parent
f85bb03a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
proguard-rules.pro
GoodMoney/app/proguard-rules.pro
+0
-3
XmlyPlayActivity.kt
...java/com/mints/goodmoney/ui/activitys/XmlyPlayActivity.kt
+1
-3
XmlyPlayAdapter.kt
...in/java/com/mints/goodmoney/ui/adapter/XmlyPlayAdapter.kt
+5
-6
No files found.
GoodMoney/app/proguard-rules.pro
View file @
95043aa9
...
@@ -551,13 +551,10 @@
...
@@ -551,13 +551,10 @@
# ===================== 喜马拉雅 START ================
# ===================== 喜马拉雅 START ================
-dontwarn com.google.gson.
*
*
-dontwarn com.google.gson.
*
*
-dontwarn android.support.
*
*
-dontwarn android.support.
*
*
-keep class android.support.
*
* { *;}
-keep class android.support.
*
* { *;}
-dontwarn com.ximalaya.ting.android.player.
*
*
-dontwarn com.ximalaya.ting.android.player.
*
*
-keep class com.ximalaya.ting.android.player.
*
* { *;}
-keep class com.ximalaya.ting.android.player.
*
* { *;}
-dontwarn com.ximalaya.ting.android.opensdk.
*
*
-dontwarn com.ximalaya.ting.android.opensdk.
*
*
-keep interface com.ximalaya.ting.android.opensdk.
*
* {*;}
-keep interface com.ximalaya.ting.android.opensdk.
*
* {*;}
-keep class com.ximalaya.ting.android.opensdk.
*
* { *; }
-keep class com.ximalaya.ting.android.opensdk.
*
* { *; }
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/XmlyPlayActivity.kt
View file @
95043aa9
...
@@ -3,7 +3,6 @@ package com.mints.goodmoney.ui.activitys
...
@@ -3,7 +3,6 @@ package com.mints.goodmoney.ui.activitys
import
android.os.Bundle
import
android.os.Bundle
import
android.view.View
import
android.view.View
import
android.widget.SeekBar
import
android.widget.SeekBar
import
android.widget.Toast
import
androidx.recyclerview.widget.DividerItemDecoration
import
androidx.recyclerview.widget.DividerItemDecoration
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.LinearLayoutManager
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.MintsApplication
...
@@ -300,7 +299,7 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
...
@@ -300,7 +299,7 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
override
fun
onError
(
exception
:
XmPlayerException
):
Boolean
{
override
fun
onError
(
exception
:
XmPlayerException
):
Boolean
{
play_or_pause
.
setImageResource
(
R
.
mipmap
.
widget_play_normal
)
play_or_pause
.
setImageResource
(
R
.
mipmap
.
widget_play_normal
)
if
(!
NetworkType
.
isConnectTONetWork
(
mContext
))
{
if
(!
NetworkType
.
isConnectTONetWork
(
mContext
))
{
Toast
.
makeText
(
this
@XmlyPlayActivity
,
"网络出小差儿了~"
,
Toast
.
LENGTH_SHORT
).
show
(
)
showToast
(
"网络出小差儿了~"
)
}
}
return
false
return
false
}
}
...
@@ -412,7 +411,6 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
...
@@ -412,7 +411,6 @@ class XmlyPlayActivity : BaseActivity(), View.OnClickListener, XmlyPlayAdapter.O
}
}
override
fun
finish
()
{
override
fun
finish
()
{
if
(
mPlayerManager
.
isPlaying
&&
mStartListenTime
!=
0L
)
{
if
(
mPlayerManager
.
isPlaying
&&
mStartListenTime
!=
0L
)
{
mListenTime
+=
System
.
currentTimeMillis
()
-
mStartListenTime
mListenTime
+=
System
.
currentTimeMillis
()
-
mStartListenTime
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/XmlyPlayAdapter.kt
View file @
95043aa9
...
@@ -36,13 +36,12 @@ class XmlyPlayAdapter(val xmlyPageList: MutableList<Track>, val xmlyUnlockList:
...
@@ -36,13 +36,12 @@ class XmlyPlayAdapter(val xmlyPageList: MutableList<Track>, val xmlyUnlockList:
holder
.
tvIndex
.
text
=
(
position
+
1
).
toString
()
holder
.
tvIndex
.
text
=
(
position
+
1
).
toString
()
holder
.
tvTitle
.
text
=
track
.
trackTitle
holder
.
tvTitle
.
text
=
track
.
trackTitle
holder
.
tvCount
.
text
=
ToolUtil
.
formatNum
(
track
.
playCount
.
toString
(),
false
)
holder
.
tvCount
.
text
=
ToolUtil
.
formatNum
(
track
.
playCount
.
toString
(),
false
)
holder
.
ivIsLock
.
setImageResource
(
R
.
mipmap
.
icon_lock
)
for
(
s
in
xmlyUnlockList
)
{
for
(
s
in
xmlyUnlockList
)
{
if
(
position
==
0
||
position
==
1
)
{
if
(
position
>=
s
.
toInt
()
-
1
)
{
holder
.
ivIsLock
.
setImageResource
(
R
.
mipmap
.
icon_unlock
)
if
(
s
.
toInt
()
-
1
==
position
)
{
}
else
if
(
position
==
s
.
toInt
()
-
1
)
{
holder
.
ivIsLock
.
setImageResource
(
R
.
mipmap
.
icon_unlock
)
holder
.
ivIsLock
.
setImageResource
(
R
.
mipmap
.
icon_unlock
)
}
else
{
}
holder
.
ivIsLock
.
setImageResource
(
R
.
mipmap
.
icon_lock
)
}
}
}
}
...
...
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