diff --git a/app/src/main/kotlin/jackall/moncalc/fragment/HistoryFragment.kt b/app/src/main/kotlin/jackall/moncalc/fragment/HistoryFragment.kt index ad815e7..15edcaf 100644 --- a/app/src/main/kotlin/jackall/moncalc/fragment/HistoryFragment.kt +++ b/app/src/main/kotlin/jackall/moncalc/fragment/HistoryFragment.kt @@ -7,9 +7,13 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import com.google.android.gms.ads.AdSize +import jackall.moncalc.Const import jackall.moncalc.R import jackall.moncalc.adapter.HistoryRecyclerAdapter import jackall.moncalc.databinding.FragmentHistoryBinding +import jackall.moncalc.utils.AdUtil +import kotlinx.android.synthetic.main.fragment_history.view.* /** * Created by matsumoto_k on 2017/11/03. @@ -35,5 +39,8 @@ return binding.root } - + override fun onStart() { + super.onStart() + AdUtil.startBannerAd(activity, binding.root.history_rectangle_banner_layout, AdSize.MEDIUM_RECTANGLE, Const.historyRectangleBannerUnitId) + } } \ No newline at end of file