This commit is contained in:
ocean 2024-07-04 13:50:54 +08:00
parent c268564445
commit b419fcff39

View File

@ -511,11 +511,12 @@ abstract class MoBaseActivity : AppCompatActivity(), MusicPlayerView.PlaySkipFor
}
fun showRatingDialog() {
val intervalTime = 1000 * 60 * 5
val dialog = RatingDialog(this)
val installTime = appStore.showRateDialogTime
val currentTime = System.currentTimeMillis()
// 检测是否超过三天
if (currentTime - installTime > TimeUnit.DAYS.toMillis(3)) {
// 检测是否超过间隔时间
if (currentTime - installTime > intervalTime) {
dialog.show()
//更新为当前时间
appStore.showRateDialogTime = System.currentTimeMillis()