ProfileBackgroundComponent$2.smali

.class final Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->i()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;)V
    .registers 2

    .line 867
    iput-object p1, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 6

    const v0, 0x7f0600d5

    .line 1040
    invoke-static {v0}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I

    move-result v0

    .line 871
    iget-object v1, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v1, v1, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->G:Landroid/view/View;

    const v2, 0x7f090844

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 872
    iget-object v2, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v2, v2, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->G:Landroid/view/View;

    const v3, 0x7f091467

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 873
    new-instance v3, Lcom/imo/android/imoim/widgets/quickaction/a;

    const/16 v4, 0x30

    invoke-direct {v3, v0, v4}, Lcom/imo/android/imoim/widgets/quickaction/a;-><init>(II)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 874
    invoke-virtual {v1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;

    .line 875
    invoke-static {}, Lcom/imo/android/imoim/util/do;->a()Z

    move-result v3

    if-eqz v3, :cond_42

    .line 876
    iget-object v3, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->d:Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;

    invoke-virtual {v3}, Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;->getMeasuredWidth()I

    move-result v3

    iput v3, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->leftMargin:I

    goto :goto_4c

    .line 878
    :cond_42
    iget-object v3, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->d:Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;

    invoke-virtual {v3}, Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;->getMeasuredWidth()I

    move-result v3

    iput v3, v0, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->rightMargin:I

    .line 880
    :goto_4c
    iget-object v3, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->G:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    iget-object v4, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v4, v4, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->d:Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;

    invoke-virtual {v4}, Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;->getMeasuredWidth()I

    move-result v4

    if-ge v3, v4, :cond_95

    .line 881
    invoke-virtual {v2}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    check-cast v2, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;

    .line 882
    invoke-static {}, Lcom/imo/android/imoim/util/do;->a()Z

    move-result v3

    if-eqz v3, :cond_80

    .line 883
    iget-object v3, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->d:Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;

    invoke-virtual {v3}, Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;->getMeasuredWidth()I

    move-result v3

    iget-object v4, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v4, v4, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->G:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    sub-int/2addr v3, v4

    iput v3, v2, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->leftMargin:I

    goto :goto_95

    .line 885
    :cond_80
    iget-object v3, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->d:Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;

    invoke-virtual {v3}, Lcom/imo/android/imoim/profile/musicpendant/MusicPendantView;->getMeasuredWidth()I

    move-result v3

    iget-object v4, p0, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent$2;->a:Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;

    iget-object v4, v4, Lcom/imo/android/imoim/profile/background/ProfileBackgroundComponent;->G:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    sub-int/2addr v3, v4

    iput v3, v2, Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams;->rightMargin:I

    .line 888
    :cond_95
    :goto_95
    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method