Skip to content

Commit

Permalink
Coded dining insight start date + removed bottom bar for news fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
baronhsieh2005 committed Sep 1, 2024
1 parent d758c96 commit a10c81a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class NewsFragment : ListFragment() {

private var mListView: ListView? = null
private var mCustomTabsClient: CustomTabsClient? = null
private lateinit var mActivity: MainActivity
private var customTabsIntent: CustomTabsIntent? = null
private var share: Intent? = null
private var session: CustomTabsSession? = null
Expand All @@ -44,6 +45,7 @@ class NewsFragment : ListFragment() {

private var connection: NewsCustomTabsServiceConnection? = null


private var _binding: FragmentNewsBinding? = null
val binding get() = _binding!!

Expand Down Expand Up @@ -162,7 +164,7 @@ class NewsFragment : ListFragment() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val mActivity = activity as MainActivity
mActivity = activity as MainActivity
mActivity.closeKeyboard()
setHasOptionsMenu(true)

Expand All @@ -175,6 +177,7 @@ class NewsFragment : ListFragment() {
savedInstanceState: Bundle?,
): View {
_binding = FragmentNewsBinding.inflate(inflater, container, false)
mActivity.hideBottomBar()
return binding.root
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DiningInsightsCardAdapter(
private const val DINING_DOLLARS_PREDICTIONS = 2
private const val DINING_SWIPES_PREDICTIONS = 3

const val START_DAY_OF_SEMESTER = "2024-01-18"
const val START_DAY_OF_SEMESTER = "2024-08-27"
private const val DAYS_IN_SEMESTER = 117f
}

Expand Down

0 comments on commit a10c81a

Please sign in to comment.