diff --git a/app/src/main/kotlin/jackall/moncalc/activity/MainActivity.kt b/app/src/main/kotlin/jackall/moncalc/activity/MainActivity.kt index b29cd72..352b493 100644 --- a/app/src/main/kotlin/jackall/moncalc/activity/MainActivity.kt +++ b/app/src/main/kotlin/jackall/moncalc/activity/MainActivity.kt @@ -15,6 +15,7 @@ import jackall.moncalc.databinding.ActivityMainBinding import jackall.moncalc.db.MonstDataRealmHelper import jackall.moncalc.db.QuestRecordRealmHelper +import jackall.moncalc.utils.AdUtil import jackall.moncalc.utils.MySharedPref import jackall.moncalc.viewmodel.MainViewModel import jackall.moncalc.vo.Drop @@ -103,4 +104,9 @@ mainBinding.root.main_view_pager.adapter = MainFragmentPagerAdapter(supportFragmentManager, this) mainBinding.root.main_tab_layout.setupWithViewPager(mainBinding.root.main_view_pager) } + + override fun onStart() { + super.onStart() + AdUtil.startBannerAd(this, mainBinding.root.main_banner_layout, Const.BannerUnitId) + } } \ No newline at end of file