don't hide the action button when showing trending tags (#4910)
This fixes a bug where the action button would be hidden until app restart when trending tags have been visible once.
This commit is contained in:
parent
b24427c6df
commit
b7f7b6d6b2
1 changed files with 2 additions and 9 deletions
|
|
@ -97,8 +97,6 @@ class TrendingTagsFragment :
|
|||
processViewState(adapter, trendingState)
|
||||
}
|
||||
}
|
||||
|
||||
(requireActivity() as? ActionButtonActivity)?.actionButton?.visibility = View.GONE
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
|
|
@ -122,7 +120,7 @@ class TrendingTagsFragment :
|
|||
}
|
||||
|
||||
private fun setupRecyclerView(adapter: TrendingTagsAdapter) {
|
||||
binding.recyclerView.ensureBottomPadding()
|
||||
binding.recyclerView.ensureBottomPadding(fab = actionButtonPresent())
|
||||
|
||||
val columnCount =
|
||||
requireContext().resources.getInteger(R.integer.trending_column_count)
|
||||
|
|
@ -220,7 +218,7 @@ class TrendingTagsFragment :
|
|||
}
|
||||
|
||||
private fun actionButtonPresent(): Boolean {
|
||||
return activity is ActionButtonActivity
|
||||
return (activity as? ActionButtonActivity?)?.actionButton != null
|
||||
}
|
||||
|
||||
private var talkBackWasEnabled = false
|
||||
|
|
@ -236,11 +234,6 @@ class TrendingTagsFragment :
|
|||
val adapter = requireNotNull(this.adapter)
|
||||
adapter.notifyItemRangeChanged(0, adapter.itemCount)
|
||||
}
|
||||
|
||||
if (actionButtonPresent()) {
|
||||
val composeButton = (activity as ActionButtonActivity).actionButton
|
||||
composeButton?.hide()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onReselect() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue