diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/PennCourseAlertHolderFragment.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/PennCourseAlertHolderFragment.kt index 5b4df11e..f54b3152 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/PennCourseAlertHolderFragment.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/PennCourseAlertHolderFragment.kt @@ -42,6 +42,11 @@ class PennCourseAlertHolderFragment : Fragment() { return view } + override fun onResume() { + mActivity.setSelectedTab(MainActivity.PCA) + super.onResume() + } + private fun initAppBar(view: View?) { view?.title_view?.text = "Penn Course Alert" view?.date_view?.text = Utils.getCurrentSystemTime() diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/more_fragments/MoreFragment.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/more_fragments/MoreFragment.kt index cff29000..74a6ce46 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/more_fragments/MoreFragment.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/more_fragments/MoreFragment.kt @@ -56,6 +56,7 @@ class MoreFragment : Fragment() { R.drawable.ic_guest_avatar, context?.theme) ) } + mActivity.setSelectedTab(MainActivity.MORE) super.onResume() }