From f1ee656e52cb83ccb23149cd8cfa6498f7de8347 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 11 Feb 2021 15:24:42 +0100 Subject: [PATCH] Fixes bad key use --- .../java/net/pokeranalytics/android/util/Preferences.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/pokeranalytics/android/util/Preferences.kt b/app/src/main/java/net/pokeranalytics/android/util/Preferences.kt index e6c3d978..b1436c28 100644 --- a/app/src/main/java/net/pokeranalytics/android/util/Preferences.kt +++ b/app/src/main/java/net/pokeranalytics/android/util/Preferences.kt @@ -250,11 +250,11 @@ class Preferences { } 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 { - return getLong(Keys.LATEST_BLOG_POST_ID_DISPLAYED, context) + fun getLatestDisplayedBlogPostId(context: Context): Int { + return getInt(Keys.LATEST_BLOG_POST_ID_DISPLAYED, context) } fun showBlogTips(show: Boolean, context: Context) {