b.smali
.class public abstract Lcom/cleanmaster/giftbox/b;
.super Ljava/lang/Object;
.source "GiftBoxBaseHelper.java"
# instance fields
.field protected a:Lcom/cm/plugincluster/ad/IAd;
.field protected b:Lcom/cm/plugincluster/ad/ui/IAdView;
.field protected c:Landroid/os/Handler;
.field protected d:Landroid/content/Context;
.field protected e:Lcom/cleanmaster/giftbox/IUICtrl;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 4
.prologue
.line 29
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 25
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object v0, p0, Lcom/cleanmaster/giftbox/b;->c:Landroid/os/Handler;
.line 30
new-instance v0, Lcom/cleanmaster/giftbox/a$a;
invoke-direct {v0}, Lcom/cleanmaster/giftbox/a$a;-><init>()V
iput-object v0, p0, Lcom/cleanmaster/giftbox/b;->e:Lcom/cleanmaster/giftbox/IUICtrl;
.line 31
iput-object p1, p0, Lcom/cleanmaster/giftbox/b;->d:Landroid/content/Context;
.line 32
return-void
.end method
# virtual methods
.method public a()V
.registers 5
.prologue
const/4 v3, 0x1
.line 35
invoke-virtual {p0}, Lcom/cleanmaster/giftbox/b;->g()Z
move-result v0
if-nez v0, :cond_f
.line 36
invoke-virtual {p0}, Lcom/cleanmaster/giftbox/b;->c()V
.line 37
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/cleanmaster/giftbox/b;->a(Z)V
.line 68
:cond_e
:goto_e
return-void
.line 40
:cond_f
invoke-static {}, Lcom/cm/plugincluster/ad/AdDelegate;->getAdSdk()Lcom/cm/plugincluster/ad/IAdSdk;
move-result-object v0
invoke-virtual {p0}, Lcom/cleanmaster/giftbox/b;->f()Ljava/lang/String;
move-result-object v1
new-instance v2, Lcom/cleanmaster/giftbox/c;
invoke-direct {v2, p0}, Lcom/cleanmaster/giftbox/c;-><init>(Lcom/cleanmaster/giftbox/b;)V
invoke-interface {v0, v1, v2, v3}, Lcom/cm/plugincluster/ad/IAdSdk;->fetchAd(Ljava/lang/String;Lcom/cm/plugincluster/ad/data/IAdFetchListener;Z)Lcom/cm/plugincluster/ad/IAd;
move-result-object v0
.line 64
invoke-virtual {p0, v0}, Lcom/cleanmaster/giftbox/b;->a(Lcom/cm/plugincluster/ad/IAd;)Z
move-result v1
if-eqz v1, :cond_e
.line 65
iput-object v0, p0, Lcom/cleanmaster/giftbox/b;->a:Lcom/cm/plugincluster/ad/IAd;
.line 66
invoke-virtual {p0, v3}, Lcom/cleanmaster/giftbox/b;->a(Z)V
goto :goto_e
.end method
.method protected abstract a(Z)V
.end method
.method protected abstract a(Lcom/cm/plugincluster/ad/IAd;)Z
.end method
.method public b()Landroid/view/View;
.registers 6
.prologue
const/4 v0, 0x0
.line 71
iget-object v1, p0, Lcom/cleanmaster/giftbox/b;->a:Lcom/cm/plugincluster/ad/IAd;
if-nez v1, :cond_6
.line 90
:cond_5
:goto_5
return-object v0
.line 74
:cond_6
iget-object v1, p0, Lcom/cleanmaster/giftbox/b;->a:Lcom/cm/plugincluster/ad/IAd;
invoke-virtual {p0}, Lcom/cleanmaster/giftbox/b;->e()I
move-result v2
invoke-interface {v1, v2}, Lcom/cm/plugincluster/ad/IAd;->setShowType(I)V
.line 75
invoke-static {}, Lcom/cm/plugincluster/ad/AdDelegate;->getAdSdk()Lcom/cm/plugincluster/ad/IAdSdk;
move-result-object v1
invoke-static {}, Lcom/keniu/security/l;->f()Landroid/app/Application;
move-result-object v2
invoke-virtual {v2}, Landroid/app/Application;->getApplicationContext()Landroid/content/Context;
move-result-object v2
iget-object v3, p0, Lcom/cleanmaster/giftbox/b;->a:Lcom/cm/plugincluster/ad/IAd;
invoke-virtual {p0}, Lcom/cleanmaster/giftbox/b;->d()Lcom/cm/plugincluster/ad/ui/IAdViewStyle;
move-result-object v4
invoke-interface {v1, v2, v3, v4, v0}, Lcom/cm/plugincluster/ad/IAdSdk;->createAdView(Landroid/content/Context;Lcom/cm/plugincluster/ad/IAd;Lcom/cm/plugincluster/ad/ui/IAdViewStyle;Landroid/view/View;)Lcom/cm/plugincluster/ad/ui/IAdView;
move-result-object v1
iput-object v1, p0, Lcom/cleanmaster/giftbox/b;->b:Lcom/cm/plugincluster/ad/ui/IAdView;
.line 76
iget-object v1, p0, Lcom/cleanmaster/giftbox/b;->b:Lcom/cm/plugincluster/ad/ui/IAdView;
if-eqz v1, :cond_5
.line 79
iget-object v0, p0, Lcom/cleanmaster/giftbox/b;->b:Lcom/cm/plugincluster/ad/ui/IAdView;
invoke-interface {v0}, Lcom/cm/plugincluster/ad/ui/IAdView;->show()V
.line 80
iget-object v0, p0, Lcom/cleanmaster/giftbox/b;->b:Lcom/cm/plugincluster/ad/ui/IAdView;
new-instance v1, Lcom/cleanmaster/giftbox/d;
invoke-direct {v1, p0}, Lcom/cleanmaster/giftbox/d;-><init>(Lcom/cleanmaster/giftbox/b;)V
invoke-interface {v0, v1}, Lcom/cm/plugincluster/ad/ui/IAdView;->setAdOperatorListener(Lcom/cm/plugincluster/ad/ui/IAdOperatorListener;)V
.line 90
iget-object v0, p0, Lcom/cleanmaster/giftbox/b;->b:Lcom/cm/plugincluster/ad/ui/IAdView;
invoke-interface {v0}, Lcom/cm/plugincluster/ad/ui/IAdView;->getView()Landroid/view/View;
move-result-object v0
goto :goto_5
.end method
.method public c()V
.registers 3
.prologue
.line 94
iget-object v0, p0, Lcom/cleanmaster/giftbox/b;->c:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/giftbox/e;
invoke-direct {v1, p0}, Lcom/cleanmaster/giftbox/e;-><init>(Lcom/cleanmaster/giftbox/b;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 107
return-void
.end method
.method protected abstract d()Lcom/cm/plugincluster/ad/ui/IAdViewStyle;
.end method
.method protected abstract e()I
.end method
.method protected abstract f()Ljava/lang/String;
.end method
.method protected abstract g()Z
.end method