Skip to content

Commit

Permalink
Fix Nav Bar showing up when clicking for sublet details
Browse files Browse the repository at this point in the history
  • Loading branch information
joemacd committed Sep 1, 2024
1 parent 7ada6b7 commit 6bb1a4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import com.pennapps.labs.pennmobile.Subletting.SubletDetailsHolderFragment
import com.pennapps.labs.pennmobile.classes.Sublet
import com.pennapps.labs.pennmobile.classes.SublettingModel
import com.pennapps.labs.pennmobile.classes.SublettingViewModel
import kotlinx.android.synthetic.main.include_main.expandable_bottom_bar
import kotlinx.android.synthetic.main.include_main.toolbar

class PostedSubletsListAdapter(private val dataModel: SublettingViewModel):
RecyclerView.Adapter<PostedSubletsListAdapter.SublettingCardViewHolder>() {
Expand Down Expand Up @@ -62,6 +64,7 @@ class PostedSubletsListAdapter(private val dataModel: SublettingViewModel):
holder.listingRooms.text = rooms

holder.itemView.setOnClickListener {
mActivity.hideBottomBar()
mActivity.supportFragmentManager.beginTransaction()
.replace(R.id.content_frame, SubletDetailsHolderFragment(dataModel, position))
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class SublettingListAdapter(var sublettingList: ArrayList<SublettingModel>, var
}

holder.itemView.setOnClickListener {
mActivity.hideBottomBar()
mActivity.supportFragmentManager.beginTransaction()
.replace(R.id.content_frame, SublesseeDetailsFragment(dataModel, position))
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
Expand Down

0 comments on commit 6bb1a4d

Please sign in to comment.