Commit cc15c960 by 王佳洋

音频快照

parent 0ff123a5
......@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version = '1.2.3'
constrait_support_version = '1.0.2'
componentVersion = "0.3.0.24-SNAPSHOT"
componentVersion = "0.3.0.25-SNAPSHOT"
}
repositories {
mavenCentral()
......
......@@ -38,7 +38,7 @@ class CourseSpeedDialog : BaseDialogFragment() {
}
fun setSpeedPosition(speed: Float) {
mCurrentPosition = mSpeedList.indexOf(speed)
mCurrentPosition = mSpeedList.indexOfFirst { speed == it }
}
inner class CourseSpeedAdapter(
......
......@@ -52,9 +52,9 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
AudioPlayer.get().singlePlay(music, false)
PlayerFloatHelper.playingType = PlayTypeEnum.PLAY_TYPE_CONFIDE
if (PlayerFloatHelper.isShow(mContext!!)) {
if (PlayerFloatHelper.isShow()) {
if (PlayerFloatHelper.playingType == PlayTypeEnum.PLAY_TYPE_CONFIDE) {
PlayerFloatHelper.removeView(mContext!!)
PlayerFloatHelper.removeView()
PlayerFloatHelper.show(mContext!!)
} else {
......@@ -78,9 +78,8 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
override fun onPlayFinish() {
stopPlayAnim()
if (PlayerFloatHelper.isShow(mContext!!)) {
PlayerFloatHelper.removeView(mContext!!)
AudioPlayer.get().stopPlayer()
if (PlayerFloatHelper.isShow()) {
PlayerFloatHelper.removeResetView()
}
}
......
......@@ -45,6 +45,7 @@ class ImageUtil {
* base64字符串
* 保存图片到相册
*/
@JvmStatic
fun savePicture(context: Context, base64: String?): Disposable? {
var disposable: Disposable? = null
base64?.run {
......@@ -71,6 +72,7 @@ class ImageUtil {
* bitmap
* 保存图片到相册
*/
@JvmStatic
fun savePicture(context: Context, bitmap: Bitmap?): Disposable? {
var disposable: Disposable? = null
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment