From c9400027c9ce4bf0c452a5831e7bd3ec66f87d76 Mon Sep 17 00:00:00 2001 From: Julius Snipes Date: Sun, 1 Oct 2023 20:37:24 -0400 Subject: [PATCH] Fix weird login issue --- .../main/java/com/pennapps/labs/pennmobile/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MainActivity.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MainActivity.kt index c6873983..61f34780 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MainActivity.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/MainActivity.kt @@ -144,6 +144,10 @@ class MainActivity : AppCompatActivity() { } } main_view_pager.visibility = View.VISIBLE + val mainPagerAdapter = MainPagerAdapter(fragmentManager, lifecycle) + main_view_pager?.adapter = mainPagerAdapter + main_view_pager.isUserInputEnabled = false + main_view_pager.offscreenPageLimit = 5 expandable_bottom_bar.visibility = View.VISIBLE setTab(HOME_ID) }