package com.kwad.components.ad.splashscreen.b; import android.content.Context; import android.os.Vibrator; import com.kwad.components.ad.splashscreen.d.a; import com.kwad.components.core.c.a.c; import com.kwad.sdk.core.response.a.d; import com.kwad.sdk.core.response.model.AdInfo; import com.kwad.sdk.utils.bi; public abstract class h extends e { private static long iS = 400; private a By; private Vibrator gG; private void kJ() { if (this.Br != null) { a aVar = this.By; if (aVar == null) { this.By = new a(getContext(), this.Br.mAdTemplate) { /* class com.kwad.components.ad.splashscreen.b.h.AnonymousClass1 */ @Override // com.kwad.components.ad.splashscreen.d.a public final void aa(String str) { h.this.Z(str); } }; } else { aVar.setAdTemplate(this.Br.mAdTemplate); } c cVar = this.Br.mApkDownloadHelper; if (cVar != null) { cVar.b(this.By); } } } /* access modifiers changed from: protected */ public abstract void Z(String str); @Override // com.kwad.sdk.mvp.Presenter, com.kwad.components.ad.splashscreen.b.e public void ay() { super.ay(); if (this.Br != null) { kI(); AdInfo cs = d.cs(this.Br.mAdTemplate); kF(); kC(); if (com.kwad.sdk.core.response.a.a.as(cs)) { kJ(); } kD(); kG(); kH(); kE(); } } /* access modifiers changed from: protected */ public abstract void initView(); /* access modifiers changed from: protected */ public abstract void kC(); /* access modifiers changed from: protected */ public abstract void kD(); /* access modifiers changed from: protected */ public abstract void kE(); /* access modifiers changed from: protected */ public abstract void kF(); /* access modifiers changed from: protected */ public abstract void kG(); /* access modifiers changed from: protected */ public abstract void kH(); /* access modifiers changed from: protected */ public abstract void kI(); /* access modifiers changed from: protected */ public final void kK() { Context context = getContext(); if (context != null) { this.gG = (Vibrator) context.getSystemService("vibrator"); } bi.a(getContext(), this.gG); } @Override // com.kwad.sdk.mvp.Presenter public final void onCreate() { super.onCreate(); initView(); } @Override // com.kwad.sdk.mvp.Presenter public void onUnbind() { super.onUnbind(); bi.b(getContext(), this.gG); } }