This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
273 additions
and
181 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,19 +1,14 @@ | ||
何处春江无月明 版本 | ||
江流宛转绕芳甸 版本 | ||
|
||
#### 新 | ||
|
||
适配 Flyme 状态栏歌词 | ||
支持重启应用恢复先前的歌单,当前歌曲 | ||
适配安卓 4.4 | ||
协议弹窗 | ||
|
||
#### 改 | ||
|
||
网络优化 | ||
优化滑动体验 | ||
界面优化 | ||
优化安装包大小 | ||
移除在线反馈功能 | ||
其他优化 | ||
|
||
#### 修 | ||
|
||
修复当列表为 1,引发的闪退问题 | ||
修复部分机型启动服务失败的问题 | ||
|
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
Binary file not shown.
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 was deleted.
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
43 changes: 43 additions & 0 deletions
43
app/src/main/java/com/dirror/music/ui/activity/AgreementActivity.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,43 @@ | ||
package com.dirror.music.ui.activity | ||
|
||
import android.content.Intent | ||
import android.graphics.Bitmap | ||
import com.dirror.music.MyApplication | ||
import com.dirror.music.databinding.ActivityAgreementBinding | ||
import com.dirror.music.manager.ActivityCollector | ||
import com.dirror.music.ui.base.BaseActivity | ||
import com.dirror.music.util.Config | ||
import com.dirror.music.util.Secure | ||
|
||
class AgreementActivity : BaseActivity() { | ||
|
||
private lateinit var binding: ActivityAgreementBinding | ||
|
||
override fun initBinding() { | ||
binding = ActivityAgreementBinding.inflate(layoutInflater) | ||
setContentView(binding.root) | ||
} | ||
|
||
override fun initListener() { | ||
binding.btnAgree.setOnClickListener { | ||
MyApplication.config.mmkv.encode(Config.SHOW_AGREEMENT, false) | ||
val intent = Intent(this, MainActivity::class.java) | ||
startActivity(intent) | ||
finish() | ||
} | ||
|
||
binding.btnExit.setOnClickListener { | ||
MyApplication.musicController.value?.stopMusicService() | ||
ActivityCollector.finishAll() | ||
|
||
object : Thread() { | ||
override fun run() { | ||
super.run() | ||
sleep(500) | ||
Secure.killMyself() | ||
} | ||
}.start() | ||
} | ||
} | ||
|
||
} |
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
Oops, something went wrong.