#2342 used const value for count

This commit is contained in:
gouri-panda 2020-09-07 14:47:24 +05:30
parent a74e0171f7
commit b8bd3518a6

View File

@ -33,14 +33,15 @@ class RateAppCounter internal constructor(context: Context) {
}
var count: Int
get() = visitCounter.getInt("count", 0)
get() = visitCounter.getInt(COUNT, 0)
set(count) {
visitCounter.edit {
putInt("count", count)
putInt(COUNT, count)
}
}
companion object {
private const val NO_THANKS_CLICKED = "clickedNoThanks"
private const val COUNT = "count"
}
}