AppleTextView$1.smali

.class Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;
.super Ljava/lang/Object;
.source "AppleTextView.java"

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


# instance fields
.field final synthetic this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;


# direct methods
.method constructor <init>(Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;)V
    .registers 2

    .prologue
    .line 40
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

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

    return-void
.end method


# virtual methods
.method public onGlobalLayout()V
    .registers 6

    .prologue
    .line 43
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->firstText:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_14

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->secondText:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_15

    .line 53
    :cond_14
    :goto_14
    return-void

    .line 47
    :cond_15
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->getCompoundPaddingLeft()I

    move-result v1

    int-to-float v1, v1

    iput v1, v0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->textX:F

    .line 49
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->getHeight()I

    move-result v0

    .line 50
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v1

    invoke-virtual {v1}, Landroid/text/TextPaint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v1

    .line 51
    iget v2, v1, Landroid/graphics/Paint$FontMetrics;->bottom:F

    iget v3, v1, Landroid/graphics/Paint$FontMetrics;->top:F

    sub-float/2addr v2, v3

    .line 52
    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView$1;->this$0:Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;

    int-to-float v4, v0

    int-to-float v0, v0

    sub-float/2addr v0, v2

    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr v0, v2

    sub-float v0, v4, v0

    iget v1, v1, Landroid/graphics/Paint$FontMetrics;->bottom:F

    sub-float/2addr v0, v1

    iput v0, v3, Lcom/cleanmaster/hpsharelib/resultpage/title/AppleTextView;->textY:F

    goto :goto_14
.end method