mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-13 01:17:21 -04:00
#2342 used const value for count
This commit is contained in:
parent
a74e0171f7
commit
b8bd3518a6
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user