From 6bb1a4da84f55e3ae3c0cd1a4e76fab216ecbe51 Mon Sep 17 00:00:00 2001 From: joemacd Date: Sun, 1 Sep 2024 13:26:05 -0400 Subject: [PATCH] Fix Nav Bar showing up when clicking for sublet details --- .../labs/pennmobile/adapters/PostedSubletsListAdapter.kt | 3 +++ .../pennapps/labs/pennmobile/adapters/SublettingListAdapter.kt | 1 + 2 files changed, 4 insertions(+) diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/PostedSubletsListAdapter.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/PostedSubletsListAdapter.kt index cab0c3e2..6d98bcdd 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/PostedSubletsListAdapter.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/PostedSubletsListAdapter.kt @@ -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() { @@ -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) diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/SublettingListAdapter.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/SublettingListAdapter.kt index 610feee1..39e66d60 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/SublettingListAdapter.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/SublettingListAdapter.kt @@ -70,6 +70,7 @@ class SublettingListAdapter(var sublettingList: ArrayList, var } holder.itemView.setOnClickListener { + mActivity.hideBottomBar() mActivity.supportFragmentManager.beginTransaction() .replace(R.id.content_frame, SublesseeDetailsFragment(dataModel, position)) .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)