Commit 7adc5b91 authored by wanglei's avatar wanglei

...

parent 0c74e789
...@@ -21,7 +21,7 @@ object RateStarPop { ...@@ -21,7 +21,7 @@ object RateStarPop {
if (AppPreferences.getInstance().getBoolean("isRated", false)) { if (AppPreferences.getInstance().getBoolean("isRated", false)) {
return return
} }
if (n > 0 && n % 8 == 0) { if (n > 0 && n % 2 == 0) {
} else { } else {
return return
...@@ -68,6 +68,9 @@ object RateStarPop { ...@@ -68,6 +68,9 @@ object RateStarPop {
dialog.dismiss() dialog.dismiss()
} }
dialog.setOnDismissListener {
AppPreferences.getInstance().put("isRated", true)
}
} }
private var star = 5 private var star = 5
......
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