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() { fun showRatingDialog() {
val intervalTime = 1000 * 60 * 5
val dialog = RatingDialog(this) val dialog = RatingDialog(this)
val installTime = appStore.showRateDialogTime val installTime = appStore.showRateDialogTime
val currentTime = System.currentTimeMillis() val currentTime = System.currentTimeMillis()
// 检测是否超过三天 // 检测是否超过间隔时间
if (currentTime - installTime > TimeUnit.DAYS.toMillis(3)) { if (currentTime - installTime > intervalTime) {
dialog.show() dialog.show()
//更新为当前时间 //更新为当前时间
appStore.showRateDialogTime = System.currentTimeMillis() appStore.showRateDialogTime = System.currentTimeMillis()