|
|
|
|
@ -603,8 +603,10 @@ class FeedFragment : FilterableFragment(), RowRepresentableDelegate, PurchaseLis |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun displayBlogPostButton(newCount: Int = 0) { |
|
|
|
|
|
|
|
|
|
context?.let { context -> |
|
|
|
|
var show = false |
|
|
|
|
if (Preferences.shouldShowBlogTips(requireContext()) && newCount > 0) { |
|
|
|
|
if (Preferences.shouldShowBlogTips(context) && newCount > 0) { |
|
|
|
|
show = true |
|
|
|
|
this.badgeDrawable?.number = newCount |
|
|
|
|
} |
|
|
|
|
@ -612,4 +614,6 @@ class FeedFragment : FilterableFragment(), RowRepresentableDelegate, PurchaseLis |
|
|
|
|
this.badgeDrawable?.isVisible = show |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |