MyAlertController$7.smali

.class Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;
.super Ljava/lang/Object;
.source "MyAlertController.java"

# interfaces
.implements Landroid/view/ViewTreeObserver$OnPreDrawListener;


# instance fields
.field final synthetic this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

.field final synthetic val$contentPanel:Landroid/widget/LinearLayout;


# direct methods
.method constructor <init>(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;Landroid/widget/LinearLayout;)V
    .registers 3

    .prologue
    .line 1237
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    iput-object p2, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreDraw()Z
    .registers 9

    .prologue
    const/4 v7, 0x1

    const/high16 v6, 0x41940000    # 18.5f

    const/high16 v5, 0x41700000    # 15.0f

    .line 1240
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mMessageView:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1700(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->getLineCount()I

    move-result v0

    .line 1241
    if-gt v0, v7, :cond_44

    .line 1242
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getPaddingLeft()I

    move-result v1

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1200(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v6}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I

    move-result v2

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    .line 1243
    invoke-virtual {v3}, Landroid/widget/LinearLayout;->getPaddingRight()I

    move-result v3

    iget-object v4, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mContext:Landroid/content/Context;
    invoke-static {v4}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1200(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/content/Context;

    move-result-object v4

    invoke-static {v4, v6}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I

    move-result v4

    .line 1242
    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 1254
    :goto_36
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mMessageView:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1700(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 1255
    return v7

    .line 1244
    :cond_44
    const/4 v1, 0x2

    if-gt v0, v1, :cond_72

    .line 1245
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mContext:Landroid/content/Context;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1200(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x42a40000    # 82.0f

    invoke-static {v0, v1}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I

    move-result v0

    .line 1246
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mMessageView:Landroid/widget/TextView;
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1700(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/TextView;->getHeight()I

    move-result v1

    .line 1247
    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    .line 1248
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getPaddingLeft()I

    move-result v2

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    .line 1249
    invoke-virtual {v3}, Landroid/widget/LinearLayout;->getPaddingRight()I

    move-result v3

    .line 1248
    invoke-virtual {v1, v2, v0, v3, v0}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    goto :goto_36

    .line 1251
    :cond_72
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getPaddingLeft()I

    move-result v1

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1200(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v5}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I

    move-result v2

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->val$contentPanel:Landroid/widget/LinearLayout;

    .line 1252
    invoke-virtual {v3}, Landroid/widget/LinearLayout;->getPaddingRight()I

    move-result v3

    iget-object v4, p0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController$7;->this$0:Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;

    # getter for: Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->mContext:Landroid/content/Context;
    invoke-static {v4}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;->access$1200(Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertController;)Landroid/content/Context;

    move-result-object v4

    invoke-static {v4, v5}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I

    move-result v4

    .line 1251
    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    goto :goto_36
.end method