-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature|optimize|fix]支持手动输入弹幕链接进行播放;全屏播放界面显示当前时间;修复部分界面显示问题和主题无法换肤的问…
…题例如MaterialDialog;优化换肤模块逻辑结构;修复首页Banner指示器有时不能及时换肤的问题
- Loading branch information
SkyD666
committed
Nov 15, 2021
1 parent
a5fb899
commit 69736d7
Showing
95 changed files
with
1,445 additions
and
1,478 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...m/skyd/imomoe/bean/SendDanmuResultBean.kt → ...ean/danmaku/AnimeSendDanmakuResultBean.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
app/src/main/java/com/skyd/imomoe/bean/danmaku/SendDanmakuBean.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.skyd.imomoe.bean.danmaku | ||
|
||
import java.io.Serializable | ||
|
||
interface SendDanmakuBean : Serializable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.skyd.imomoe.util | ||
|
||
import java.io.InputStream | ||
|
||
fun InputStream.string(): String { | ||
val out = StringBuffer() | ||
val b = ByteArray(4096) | ||
var n: Int | ||
while (this.read(b).also { n = it } != -1) { | ||
out.append(String(b, 0, n)) | ||
} | ||
return out.toString() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/skyd/imomoe/util/skin/attrs/BannerIndicatorDotSelectedColorAttr.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.skyd.imomoe.util.skin.attrs | ||
|
||
import android.view.View | ||
import androidx.core.content.ContextCompat | ||
import com.skyd.imomoe.view.component.bannerview.indicator.DotIndicator | ||
import com.skyd.skin.core.SkinResourceProcessor | ||
import com.skyd.skin.core.attrs.SkinAttr | ||
|
||
|
||
class BannerIndicatorDotSelectedColorAttr : SkinAttr() { | ||
override fun applySkin(view: View) { | ||
if (attrResourceRefId != -1 && view is DotIndicator) { | ||
val skinResProcessor = SkinResourceProcessor.instance | ||
if (skinResProcessor.usingDefaultSkin() && skinResProcessor.usingInnerAppSkin()) { | ||
view.mSelectedColor = ContextCompat.getColor(view.context, attrResourceRefId) | ||
} else { | ||
view.mSelectedColor = skinResProcessor.getColor(attrResourceRefId) | ||
} | ||
} | ||
} | ||
|
||
override fun tag(): String = "bannerIndicatorDotSelectedColorAttr" | ||
} |
Oops, something went wrong.