diff --git a/app/src/main/kotlin/jackall/overlaymulticounter/service/MainService.kt b/app/src/main/kotlin/jackall/overlaymulticounter/service/MainService.kt index e3c885f..996fe17 100644 --- a/app/src/main/kotlin/jackall/overlaymulticounter/service/MainService.kt +++ b/app/src/main/kotlin/jackall/overlaymulticounter/service/MainService.kt @@ -11,6 +11,7 @@ import android.os.IBinder import android.support.v4.app.NotificationCompat import android.view.* +import com.google.android.gms.ads.AdSize import jackall.overlaymulticounter.Const import jackall.overlaymulticounter.R import jackall.overlaymulticounter.activity.MainActivity @@ -18,9 +19,11 @@ import jackall.overlaymulticounter.common.PreferenceNames import jackall.overlaymulticounter.contract.MainServiceContract import jackall.overlaymulticounter.databinding.OverlayCounterBinding +import jackall.overlaymulticounter.utils.AdUtil import jackall.overlaymulticounter.utils.MySharedPref import jackall.overlaymulticounter.viewmodel.OverlayCounterViewModel import jackall.overlaymulticounter.viewmodel.OverlayViewModel +import kotlinx.android.synthetic.main.overlay_counter.view.* import kotlinx.android.synthetic.main.overlay_move.view.* /** @@ -73,6 +76,7 @@ } override fun showCounterView() { + AdUtil.startBannerAd(this, counterBinding.root.overlay_banner_frame, AdSize.BANNER, Const.overlayBannerUnitId) if (overlayMoveView.isShown) { windowManager.removeView(overlayMoveView) }