Fixes bad key use

blinds
Laurent 5 years ago
parent ba5a9c74e3
commit f1ee656e52
  1. 6
      app/src/main/java/net/pokeranalytics/android/util/Preferences.kt

@ -250,11 +250,11 @@ class Preferences {
} }
fun setBlogTipsTapped(context: Context) { fun setBlogTipsTapped(context: Context) {
setInt(Keys.LATEST_BLOG_POST_ID_RETRIEVED, getLatestRetrievedBlogPostId(context), context) setInt(Keys.LATEST_BLOG_POST_ID_DISPLAYED, getLatestRetrievedBlogPostId(context), context)
} }
fun getLatestDisplayedBlogPostId(context: Context): Long { fun getLatestDisplayedBlogPostId(context: Context): Int {
return getLong(Keys.LATEST_BLOG_POST_ID_DISPLAYED, context) return getInt(Keys.LATEST_BLOG_POST_ID_DISPLAYED, context)
} }
fun showBlogTips(show: Boolean, context: Context) { fun showBlogTips(show: Boolean, context: Context) {

Loading…
Cancel
Save