|
|
|
|
@ -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) { |
|
|
|
|
|