update
This commit is contained in:
parent
c268564445
commit
b419fcff39
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user