ChatAvatarContainer.smali

.class public Lim/tpelyyftgw/ui/components/ChatAvatarContainer;
.super Landroid/widget/FrameLayout;
.source "ChatAvatarContainer.java"

# interfaces
.implements Lim/tpelyyftgw/messenger/NotificationCenter$NotificationCenterDelegate;


# instance fields
.field private avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

.field private avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

.field private currentAccount:I

.field private currentConnectionState:I

.field private isOnline:[Z

.field private lastSubtitle:Ljava/lang/CharSequence;

.field private lastSubtitleColorKey:Ljava/lang/String;

.field private occupyStatusBar:Z

.field private onlineCount:I

.field private parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

.field private statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

.field private subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

.field private timeItem:Landroid/widget/ImageView;

.field private timerDrawable:Lim/tpelyyftgw/ui/components/TimerDrawable;

.field private titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lim/tpelyyftgw/ui/ChatActivity;Z)V
    .registers 11
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "chatActivity"    # Lim/tpelyyftgw/ui/ChatActivity;
    .param p3, "needTime"    # Z

    .line 56
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 43
    const/4 v0, 0x5

    new-array v0, v0, [Lim/tpelyyftgw/ui/components/StatusDrawable;

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    .line 44
    new-instance v0, Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-direct {v0}, Lim/tpelyyftgw/ui/components/AvatarDrawable;-><init>()V

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    .line 45
    sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I

    iput v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    .line 46
    const/4 v0, 0x1

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->occupyStatusBar:Z

    .line 48
    new-array v1, v0, [Z

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->isOnline:[Z

    .line 50
    const/4 v1, -0x1

    iput v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->onlineCount:I

    .line 57
    iput-object p2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    .line 59
    new-instance v1, Lim/tpelyyftgw/ui/components/BackupImageView;

    invoke-direct {v1, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    .line 60
    const/high16 v2, 0x40f00000    # 7.5f

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setRoundRadius(I)V

    .line 61
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->addView(Landroid/view/View;)V

    .line 63
    new-instance v1, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-direct {v1, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    .line 64
    const-string v2, "actionBarDefaultTitle"

    invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 65
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/16 v2, 0xe

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V

    .line 66
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V

    .line 67
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const-string v3, "fonts/rmedium.ttf"

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v3

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTypeface(Landroid/graphics/Typeface;)V

    .line 68
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v3, 0x3fa66666    # 1.3f

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    neg-int v3, v3

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setLeftDrawableTopPadding(I)V

    .line 69
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->addView(Landroid/view/View;)V

    .line 71
    new-instance v1, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-direct {v1, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    .line 72
    const-string v3, "actionBarDefaultSubtitle"

    invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v1, v4}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 73
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 74
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/16 v3, 0xb

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V

    .line 75
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V

    .line 76
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->addView(Landroid/view/View;)V

    .line 78
    if-eqz p3, :cond_e4

    .line 79
    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    .line 80
    const/high16 v3, 0x41200000    # 10.0f

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v4

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    const/high16 v5, 0x40a00000    # 5.0f

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    invoke-virtual {v1, v4, v3, v6, v5}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 81
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    sget-object v3, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 82
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    new-instance v3, Lim/tpelyyftgw/ui/components/TimerDrawable;

    invoke-direct {v3, p1}, Lim/tpelyyftgw/ui/components/TimerDrawable;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timerDrawable:Lim/tpelyyftgw/ui/components/TimerDrawable;

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

    .line 83
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->addView(Landroid/view/View;)V

    .line 84
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAvatarContainer$PwyMOPCBQoMmosWJPv1dRmdSkbs;

    invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAvatarContainer$PwyMOPCBQoMmosWJPv1dRmdSkbs;-><init>(Lim/tpelyyftgw/ui/components/ChatAvatarContainer;)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 85
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    const v3, 0x7f0f0f77

    const-string v4, "SetTimer"

    invoke-static {v4, v3}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V

    .line 88
    :cond_e4
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    if-eqz v1, :cond_13f

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->isInScheduleMode()Z

    move-result v1

    if-nez v1, :cond_13f

    .line 89
    new-instance v1, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAvatarContainer$RMTNqZSkm8_9hB_-XsLMJN-bTtE;

    invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAvatarContainer$RMTNqZSkm8_9hB_-XsLMJN-bTtE;-><init>(Lim/tpelyyftgw/ui/components/ChatAvatarContainer;)V

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 123
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChat()Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    move-result-object v1

    .line 124
    .local v1, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    new-instance v4, Lim/tpelyyftgw/ui/components/TypingDotsDrawable;

    invoke-direct {v4}, Lim/tpelyyftgw/ui/components/TypingDotsDrawable;-><init>()V

    const/4 v5, 0x0

    aput-object v4, v3, v5

    .line 125
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    new-instance v4, Lim/tpelyyftgw/ui/components/RecordStatusDrawable;

    invoke-direct {v4}, Lim/tpelyyftgw/ui/components/RecordStatusDrawable;-><init>()V

    aput-object v4, v3, v0

    .line 126
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    const/4 v4, 0x2

    new-instance v6, Lim/tpelyyftgw/ui/components/SendingFileDrawable;

    invoke-direct {v6}, Lim/tpelyyftgw/ui/components/SendingFileDrawable;-><init>()V

    aput-object v6, v3, v4

    .line 127
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    new-instance v4, Lim/tpelyyftgw/ui/components/PlayingGameDrawable;

    invoke-direct {v4}, Lim/tpelyyftgw/ui/components/PlayingGameDrawable;-><init>()V

    aput-object v4, v3, v2

    .line 128
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    const/4 v3, 0x4

    new-instance v4, Lim/tpelyyftgw/ui/components/RoundStatusDrawable;

    invoke-direct {v4}, Lim/tpelyyftgw/ui/components/RoundStatusDrawable;-><init>()V

    aput-object v4, v2, v3

    .line 129
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_12d
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    array-length v4, v3

    if-ge v2, v4, :cond_13f

    .line 130
    aget-object v3, v3, v2

    if-eqz v1, :cond_138

    const/4 v4, 0x1

    goto :goto_139

    :cond_138
    const/4 v4, 0x0

    :goto_139
    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/components/StatusDrawable;->setIsChat(Z)V

    .line 129
    add-int/lit8 v2, v2, 0x1

    goto :goto_12d

    .line 133
    .end local v1    # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    .end local v2    # "a":I
    :cond_13f
    return-void
.end method

.method private setTypingAnimation(Z)V
    .registers 6
    .param p1, "start"    # Z

    .line 241
    if-eqz p1, :cond_47

    .line 243
    :try_start_2
    iget v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;

    move-result-object v0

    iget-object v0, v0, Lim/tpelyyftgw/messenger/MessagesController;->printingStringsTypes:Landroid/util/LongSparseArray;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->getDialogId()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    .line 244
    .local v0, "type":Ljava/lang/Integer;
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v3

    aget-object v2, v2, v3

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setLeftDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 245
    const/4 v1, 0x0

    .local v1, "a":I
    :goto_24
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    array-length v2, v2

    if-ge v1, v2, :cond_41

    .line 246
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-ne v1, v2, :cond_37

    .line 247
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    aget-object v2, v2, v1

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/StatusDrawable;->start()V

    goto :goto_3e

    .line 249
    :cond_37
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    aget-object v2, v2, v1

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/StatusDrawable;->stop()V
    :try_end_3e
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_3e} :catch_42

    .line 245
    :goto_3e
    add-int/lit8 v1, v1, 0x1

    goto :goto_24

    .end local v0    # "type":Ljava/lang/Integer;
    .end local v1    # "a":I
    :cond_41
    goto :goto_46

    .line 252
    :catch_42
    move-exception v0

    .line 253
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 254
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_46
    goto :goto_5b

    .line 256
    :cond_47
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setLeftDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 257
    const/4 v0, 0x0

    .local v0, "a":I
    :goto_4e
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->statusDrawables:[Lim/tpelyyftgw/ui/components/StatusDrawable;

    array-length v2, v1

    if-ge v0, v2, :cond_5b

    .line 258
    aget-object v1, v1, v0

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/StatusDrawable;->stop()V

    .line 257
    add-int/lit8 v0, v0, 0x1

    goto :goto_4e

    .line 261
    .end local v0    # "a":I
    :cond_5b
    :goto_5b
    return-void
.end method

.method private updateCurrentConnectionState()V
    .registers 5

    .line 479
    const/4 v0, 0x0

    .line 480
    .local v0, "title":Ljava/lang/String;
    iget v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentConnectionState:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_10

    .line 481
    const v1, 0x7f0f1265

    const-string v2, "WaitingForNetwork"

    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    goto :goto_36

    .line 482
    :cond_10
    const/4 v2, 0x1

    if-ne v1, v2, :cond_1d

    .line 483
    const v1, 0x7f0f045c

    const-string v2, "Connecting"

    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    goto :goto_36

    .line 484
    :cond_1d
    const/4 v2, 0x5

    if-ne v1, v2, :cond_2a

    .line 485
    const v1, 0x7f0f119f

    const-string v2, "Updating"

    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    goto :goto_36

    .line 486
    :cond_2a
    const/4 v2, 0x4

    if-ne v1, v2, :cond_36

    .line 487
    const v1, 0x7f0f045e

    const-string v2, "ConnectingToProxy"

    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    .line 489
    :cond_36
    :goto_36
    if-nez v0, :cond_59

    .line 490
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    if-eqz v1, :cond_7a

    .line 491
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v2, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 492
    const/4 v1, 0x0

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    .line 493
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitleColorKey:Ljava/lang/String;

    if-eqz v1, :cond_7a

    .line 494
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v2, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 495
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitleColorKey:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    goto :goto_7a

    .line 499
    :cond_59
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    if-nez v1, :cond_65

    .line 500
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    iput-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    .line 502
    :cond_65
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 503
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const-string v2, "actionBarDefaultSubtitle"

    invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 504
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 506
    :cond_7a
    :goto_7a
    return-void
.end method


# virtual methods
.method public checkAndUpdateAvatar()V
    .registers 7

    .line 401
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    if-nez v0, :cond_5

    .line 402
    return-void

    .line 404
    :cond_5
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentUser()Lim/tpelyyftgw/tgnet/TLRPC$User;

    move-result-object v0

    .line 405
    .local v0, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChat()Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    move-result-object v1

    .line 406
    .local v1, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    const-string v2, "50_50"

    const/4 v3, 0x0

    if-eqz v0, :cond_3e

    .line 407
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v4, v0}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$User;)V

    .line 408
    invoke-static {v0}, Lim/tpelyyftgw/messenger/UserObject;->isUserSelf(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z

    move-result v4

    if-eqz v4, :cond_30

    .line 409
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setAvatarType(I)V

    .line 410
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    if-eqz v2, :cond_52

    .line 411
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    const/4 v4, 0x0

    invoke-virtual {v2, v4, v4, v3, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    goto :goto_52

    .line 414
    :cond_30
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    if-eqz v4, :cond_52

    .line 415
    invoke-static {v0, v3}, Lim/tpelyyftgw/messenger/ImageLocation;->getForUser(Lim/tpelyyftgw/tgnet/TLRPC$User;Z)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v3

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v4, v3, v2, v5, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    goto :goto_52

    .line 418
    :cond_3e
    if-eqz v1, :cond_52

    .line 419
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v4, v1}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)V

    .line 420
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    if-eqz v4, :cond_52

    .line 421
    invoke-static {v1, v3}, Lim/tpelyyftgw/messenger/ImageLocation;->getForChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;Z)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v3

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v4, v3, v2, v5, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    .line 424
    :cond_52
    :goto_52
    return-void
.end method

.method public varargs didReceivedNotification(II[Ljava/lang/Object;)V
    .registers 6
    .param p1, "id"    # I
    .param p2, "account"    # I
    .param p3, "args"    # [Ljava/lang/Object;

    .line 469
    sget v0, Lim/tpelyyftgw/messenger/NotificationCenter;->didUpdateConnectionState:I

    if-ne p1, v0, :cond_17

    .line 470
    iget v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v0}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getConnectionState()I

    move-result v0

    .line 471
    .local v0, "state":I
    iget v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentConnectionState:I

    if-eq v1, v0, :cond_17

    .line 472
    iput v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentConnectionState:I

    .line 473
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->updateCurrentConnectionState()V

    .line 476
    .end local v0    # "state":I
    :cond_17
    return-void
.end method

.method public getSubtitleTextView()Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
    .registers 2

    .line 237
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    return-object v0
.end method

.method public getTimeItem()Landroid/widget/ImageView;
    .registers 2

    .line 229
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    return-object v0
.end method

.method public getTitleTextView()Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
    .registers 2

    .line 233
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    return-object v0
.end method

.method public hideTimeItem()V
    .registers 3

    .line 183
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    if-nez v0, :cond_5

    .line 184
    return-void

    .line 186
    :cond_5
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 187
    return-void
.end method

.method public synthetic lambda$new$0$ChatAvatarContainer(Landroid/view/View;)V
    .registers 5
    .param p1, "v"    # Landroid/view/View;

    .line 84
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentEncryptedChat()Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    move-result-object v2

    invoke-static {v1, v2}, Lim/tpelyyftgw/ui/components/AlertsCreator;->createTTLAlert(Landroid/content/Context;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->create()Lim/tpelyyftgw/ui/actionbar/AlertDialog;

    move-result-object v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/ChatActivity;->showDialog(Landroid/app/Dialog;)Landroid/app/Dialog;

    return-void
.end method

.method public synthetic lambda$new$1$ChatAvatarContainer(Landroid/view/View;)V
    .registers 9
    .param p1, "v"    # Landroid/view/View;

    .line 90
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentUser()Lim/tpelyyftgw/tgnet/TLRPC$User;

    move-result-object v0

    .line 91
    .local v0, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChat()Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    move-result-object v1

    .line 92
    .local v1, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    if-eqz v0, :cond_68

    .line 93
    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    .line 94
    .local v2, "args":Landroid/os/Bundle;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/UserObject;->isUserSelf(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z

    move-result v3

    const-string v4, "dialog_id"

    if-eqz v3, :cond_3e

    .line 95
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/ChatActivity;->getDialogId()J

    move-result-wide v5

    invoke-virtual {v2, v4, v5, v6}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    .line 96
    new-instance v3, Lim/tpelyyftgw/ui/MediaActivity;

    const/4 v4, 0x5

    new-array v4, v4, [I

    fill-array-data v4, :array_90

    invoke-direct {v3, v2, v4}, Lim/tpelyyftgw/ui/MediaActivity;-><init>(Landroid/os/Bundle;[I)V

    .line 97
    .local v3, "fragment":Lim/tpelyyftgw/ui/MediaActivity;
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChatInfo()Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;

    move-result-object v4

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/MediaActivity;->setChatInfo(Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;)V

    .line 98
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v4, v3}, Lim/tpelyyftgw/ui/ChatActivity;->presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z

    .line 99
    .end local v3    # "fragment":Lim/tpelyyftgw/ui/MediaActivity;
    goto :goto_8e

    .line 103
    :cond_3e
    iget v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    const-string v5, "user_id"

    invoke-virtual {v2, v5, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 104
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/ChatActivity;->hasReportSpam()Z

    move-result v3

    const-string v5, "reportSpam"

    invoke-virtual {v2, v5, v3}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 105
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    if-eqz v3, :cond_5d

    .line 106
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/ChatActivity;->getDialogId()J

    move-result-wide v5

    invoke-virtual {v2, v4, v5, v6}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    .line 109
    :cond_5d
    new-instance v3, Lim/tpelyyftgw/ui/hui/chats/NewProfileActivity;

    invoke-direct {v3, v2}, Lim/tpelyyftgw/ui/hui/chats/NewProfileActivity;-><init>(Landroid/os/Bundle;)V

    .line 111
    .local v3, "fragment":Lim/tpelyyftgw/ui/hui/chats/NewProfileActivity;
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v4, v3}, Lim/tpelyyftgw/ui/ChatActivity;->presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z

    goto :goto_8e

    .line 113
    .end local v2    # "args":Landroid/os/Bundle;
    .end local v3    # "fragment":Lim/tpelyyftgw/ui/hui/chats/NewProfileActivity;
    :cond_68
    if-eqz v1, :cond_8e

    .line 114
    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    .line 115
    .restart local v2    # "args":Landroid/os/Bundle;
    iget v3, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->id:I

    const-string v4, "chat_id"

    invoke-virtual {v2, v4, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 116
    new-instance v3, Lim/tpelyyftgw/ui/ProfileActivity;

    invoke-direct {v3, v2}, Lim/tpelyyftgw/ui/ProfileActivity;-><init>(Landroid/os/Bundle;)V

    .line 117
    .local v3, "fragment":Lim/tpelyyftgw/ui/ProfileActivity;
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChatInfo()Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;

    move-result-object v4

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/ProfileActivity;->setChatInfo(Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;)V

    .line 118
    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/ProfileActivity;->setPlayProfileAnimation(Z)V

    .line 119
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v4, v3}, Lim/tpelyyftgw/ui/ChatActivity;->presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z

    goto :goto_8f

    .line 113
    .end local v2    # "args":Landroid/os/Bundle;
    .end local v3    # "fragment":Lim/tpelyyftgw/ui/ProfileActivity;
    :cond_8e
    :goto_8e
    nop

    .line 121
    :goto_8f
    return-void

    :array_90
    .array-data 4
        -0x1
        -0x1
        -0x1
        -0x1
        -0x1
    .end array-data
.end method

.method protected onAttachedToWindow()V
    .registers 3

    .line 451
    invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V

    .line 452
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    if-eqz v0, :cond_21

    .line 453
    iget v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;

    move-result-object v0

    sget v1, Lim/tpelyyftgw/messenger/NotificationCenter;->didUpdateConnectionState:I

    invoke-virtual {v0, p0, v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->addObserver(Ljava/lang/Object;I)V

    .line 454
    iget v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v0}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getConnectionState()I

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentConnectionState:I

    .line 455
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->updateCurrentConnectionState()V

    .line 457
    :cond_21
    return-void
.end method

.method protected onDetachedFromWindow()V
    .registers 3

    .line 461
    invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V

    .line 462
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    if-eqz v0, :cond_12

    .line 463
    iget v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v0}, Lim/tpelyyftgw/messenger/NotificationCenter;->getInstance(I)Lim/tpelyyftgw/messenger/NotificationCenter;

    move-result-object v0

    sget v1, Lim/tpelyyftgw/messenger/NotificationCenter;->didUpdateConnectionState:I

    invoke-virtual {v0, p0, v1}, Lim/tpelyyftgw/messenger/NotificationCenter;->removeObserver(Ljava/lang/Object;I)V

    .line 465
    :cond_12
    return-void
.end method

.method protected onLayout(ZIIII)V
    .registers 16
    .param p1, "changed"    # Z
    .param p2, "left"    # I
    .param p3, "top"    # I
    .param p4, "right"    # I
    .param p5, "bottom"    # I

    .line 160
    const/16 v0, 0x2d

    .line 161
    .local v0, "iTitleLeft":I
    invoke-static {}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getCurrentActionBarHeight()I

    move-result v1

    .line 162
    .local v1, "actionBarHeight":I
    const/high16 v2, 0x42000000    # 32.0f

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    sub-int v3, v1, v3

    div-int/lit8 v3, v3, 0x2

    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0x15

    if-lt v4, v5, :cond_1d

    iget-boolean v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->occupyStatusBar:Z

    if-eqz v4, :cond_1d

    sget v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I

    goto :goto_1e

    :cond_1d
    const/4 v4, 0x0

    :goto_1e
    add-int/2addr v3, v4

    .line 163
    .local v3, "viewTop":I
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    const/high16 v5, 0x40400000    # 3.0f

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    const/high16 v6, 0x420c0000    # 35.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    add-int/2addr v7, v3

    invoke-virtual {v4, v5, v3, v6, v7}, Lim/tpelyyftgw/ui/components/BackupImageView;->layout(IIII)V

    .line 164
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getVisibility()I

    move-result v4

    if-nez v4, :cond_68

    .line 165
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    int-to-float v5, v0

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    const v6, 0x3fa66666    # 1.3f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    add-int/2addr v7, v3

    int-to-float v8, v0

    invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v8

    iget-object v9, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v9}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getMeasuredWidth()I

    move-result v9

    add-int/2addr v8, v9

    iget-object v9, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v9}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getTextHeight()I

    move-result v9

    add-int/2addr v9, v3

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    add-int/2addr v9, v6

    invoke-virtual {v4, v5, v7, v8, v9}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->layout(IIII)V

    goto :goto_91

    .line 167
    :cond_68
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    int-to-float v5, v0

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    const/high16 v6, 0x41300000    # 11.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    add-int/2addr v7, v3

    int-to-float v8, v0

    invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v8

    iget-object v9, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v9}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getMeasuredWidth()I

    move-result v9

    add-int/2addr v8, v9

    iget-object v9, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v9}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getTextHeight()I

    move-result v9

    add-int/2addr v9, v3

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    add-int/2addr v9, v6

    invoke-virtual {v4, v5, v7, v8, v9}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->layout(IIII)V

    .line 169
    :goto_91
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    if-eqz v4, :cond_b0

    .line 170
    const/high16 v5, 0x41b80000    # 23.0f

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    const/high16 v6, 0x41600000    # 14.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    add-int/2addr v6, v3

    const/high16 v7, 0x42240000    # 41.0f

    invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    add-int/2addr v2, v3

    invoke-virtual {v4, v5, v6, v7, v2}, Landroid/widget/ImageView;->layout(IIII)V

    .line 172
    :cond_b0
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    int-to-float v4, v0

    invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v4

    const/high16 v5, 0x41a00000    # 20.0f

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    add-int/2addr v6, v3

    int-to-float v7, v0

    invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    iget-object v8, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getMeasuredWidth()I

    move-result v8

    add-int/2addr v7, v8

    iget-object v8, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getTextHeight()I

    move-result v8

    add-int/2addr v8, v3

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    add-int/2addr v8, v5

    invoke-virtual {v2, v4, v6, v7, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->layout(IIII)V

    .line 173
    return-void
.end method

.method protected onMeasure(II)V
    .registers 10
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 147
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    .line 148
    .local v0, "width":I
    const/high16 v1, 0x428c0000    # 70.0f

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    sub-int v1, v0, v1

    .line 149
    .local v1, "availableWidth":I
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    const/high16 v3, 0x42000000    # 32.0f

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v4

    const/high16 v5, 0x40000000    # 2.0f

    invoke-static {v4, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    invoke-static {v3, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    invoke-virtual {v2, v4, v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->measure(II)V

    .line 150
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/high16 v3, -0x80000000

    invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    const/high16 v6, 0x41c00000    # 24.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    invoke-static {v6, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v6

    invoke-virtual {v2, v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->measure(II)V

    .line 151
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    const/high16 v6, 0x41a00000    # 20.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    invoke-static {v6, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    invoke-virtual {v2, v4, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->measure(II)V

    .line 152
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    if-eqz v2, :cond_66

    .line 153
    const/high16 v3, 0x41400000    # 12.0f

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v4

    invoke-static {v4, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    invoke-static {v3, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    invoke-virtual {v2, v4, v3}, Landroid/widget/ImageView;->measure(II)V

    .line 155
    :cond_66
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v2

    invoke-virtual {p0, v0, v2}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->setMeasuredDimension(II)V

    .line 156
    return-void
.end method

.method public setChatAvatar(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)V
    .registers 6
    .param p1, "chat"    # Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    .line 379
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)V

    .line 380
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    if-eqz v0, :cond_15

    .line 381
    const/4 v1, 0x0

    invoke-static {p1, v1}, Lim/tpelyyftgw/messenger/ImageLocation;->getForChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;Z)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    const-string v3, "50_50"

    invoke-virtual {v0, v1, v3, v2, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    .line 383
    :cond_15
    return-void
.end method

.method public setOccupyStatusBar(Z)V
    .registers 2
    .param p1, "value"    # Z

    .line 136
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->occupyStatusBar:Z

    .line 137
    return-void
.end method

.method public setSubtitle(Ljava/lang/CharSequence;)V
    .registers 3
    .param p1, "value"    # Ljava/lang/CharSequence;

    .line 221
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    if-nez v0, :cond_a

    .line 222
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_c

    .line 224
    :cond_a
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    .line 226
    :goto_c
    return-void
.end method

.method public setTime(I)V
    .registers 3
    .param p1, "value"    # I

    .line 190
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timerDrawable:Lim/tpelyyftgw/ui/components/TimerDrawable;

    if-nez v0, :cond_5

    .line 191
    return-void

    .line 193
    :cond_5
    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/TimerDrawable;->setTime(I)V

    .line 194
    return-void
.end method

.method public setTitle(Ljava/lang/CharSequence;)V
    .registers 3
    .param p1, "value"    # Ljava/lang/CharSequence;

    .line 204
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->setTitle(Ljava/lang/CharSequence;Z)V

    .line 205
    return-void
.end method

.method public setTitle(Ljava/lang/CharSequence;Z)V
    .registers 5
    .param p1, "value"    # Ljava/lang/CharSequence;
    .param p2, "scam"    # Z

    .line 208
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 209
    if-eqz p2, :cond_27

    .line 210
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getRightDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    instance-of v0, v0, Lim/tpelyyftgw/ui/components/ScamDrawable;

    if-nez v0, :cond_37

    .line 211
    new-instance v0, Lim/tpelyyftgw/ui/components/ScamDrawable;

    const/16 v1, 0xb

    invoke-direct {v0, v1}, Lim/tpelyyftgw/ui/components/ScamDrawable;-><init>(I)V

    .line 212
    .local v0, "drawable":Lim/tpelyyftgw/ui/components/ScamDrawable;
    const-string v1, "actionBarDefaultSubtitle"

    invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/ScamDrawable;->setColor(I)V

    .line 213
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setRightDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 214
    .end local v0    # "drawable":Lim/tpelyyftgw/ui/components/ScamDrawable;
    goto :goto_37

    .line 215
    :cond_27
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getRightDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    instance-of v0, v0, Lim/tpelyyftgw/ui/components/ScamDrawable;

    if-eqz v0, :cond_37

    .line 216
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setRightDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 218
    :cond_37
    :goto_37
    return-void
.end method

.method public setTitleColors(II)V
    .registers 5
    .param p1, "title"    # I
    .param p2, "subtitle"    # I

    .line 140
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 141
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 142
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 143
    return-void
.end method

.method public setTitleIcons(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
    .registers 4
    .param p1, "leftIcon"    # Landroid/graphics/drawable/Drawable;
    .param p2, "rightIcon"    # Landroid/graphics/drawable/Drawable;

    .line 197
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setLeftDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 198
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getRightDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    instance-of v0, v0, Lim/tpelyyftgw/ui/components/ScamDrawable;

    if-nez v0, :cond_14

    .line 199
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->titleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setRightDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 201
    :cond_14
    return-void
.end method

.method public setUserAvatar(Lim/tpelyyftgw/tgnet/TLRPC$User;)V
    .registers 7
    .param p1, "user"    # Lim/tpelyyftgw/tgnet/TLRPC$User;

    .line 386
    const/4 v0, 0x0

    .line 387
    .local v0, "newPhoto":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v1, p1}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$User;)V

    .line 388
    invoke-static {p1}, Lim/tpelyyftgw/messenger/UserObject;->isUserSelf(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z

    move-result v1

    if-eqz v1, :cond_1d

    .line 389
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setAvatarType(I)V

    .line 390
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    if-eqz v1, :cond_2d

    .line 391
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    const/4 v3, 0x0

    invoke-virtual {v1, v3, v3, v2, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    goto :goto_2d

    .line 394
    :cond_1d
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    if-eqz v1, :cond_2d

    .line 395
    const/4 v2, 0x0

    invoke-static {p1, v2}, Lim/tpelyyftgw/messenger/ImageLocation;->getForUser(Lim/tpelyyftgw/tgnet/TLRPC$User;Z)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    const-string v4, "50_50"

    invoke-virtual {v1, v2, v4, v3, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    .line 398
    :cond_2d
    :goto_2d
    return-void
.end method

.method public showTimeItem()V
    .registers 3

    .line 176
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->timeItem:Landroid/widget/ImageView;

    if-nez v0, :cond_5

    .line 177
    return-void

    .line 179
    :cond_5
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 180
    return-void
.end method

.method public updateOnlineCount()V
    .registers 8

    .line 427
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    if-nez v0, :cond_5

    .line 428
    return-void

    .line 430
    :cond_5
    const/4 v1, 0x0

    iput v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->onlineCount:I

    .line 431
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChatInfo()Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;

    move-result-object v0

    .line 432
    .local v0, "info":Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;
    if-nez v0, :cond_f

    .line 433
    return-void

    .line 435
    :cond_f
    iget v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v1}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getCurrentTime()I

    move-result v1

    .line 436
    .local v1, "currentTime":I
    instance-of v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_chatFull;

    if-nez v2, :cond_39

    instance-of v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_channelFull;

    const/16 v3, 0xc8

    if-eqz v2, :cond_2c

    iget v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants_count:I

    if-gt v2, v3, :cond_2c

    iget-object v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants:Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;

    if-eqz v2, :cond_2c

    goto :goto_39

    .line 444
    :cond_2c
    instance-of v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_channelFull;

    if-eqz v2, :cond_89

    iget v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants_count:I

    if-le v2, v3, :cond_89

    .line 445
    iget v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->online_count:I

    iput v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->onlineCount:I

    goto :goto_89

    .line 437
    :cond_39
    :goto_39
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_3a
    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants:Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;

    iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;->participants:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v2, v3, :cond_89

    .line 438
    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants:Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;

    iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;->participants:Ljava/util/ArrayList;

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipant;

    .line 439
    .local v3, "participant":Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipant;
    iget v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v4}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;

    move-result-object v4

    iget v5, v3, Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipant;->user_id:I

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v4, v5}, Lim/tpelyyftgw/messenger/MessagesController;->getUser(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$User;

    move-result-object v4

    .line 440
    .local v4, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    if-eqz v4, :cond_86

    iget-object v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v5, :cond_86

    iget-object v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    iget v5, v5, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I

    if-gt v5, v1, :cond_78

    iget v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    iget v6, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v6}, Lim/tpelyyftgw/messenger/UserConfig;->getInstance(I)Lim/tpelyyftgw/messenger/UserConfig;

    move-result-object v6

    invoke-virtual {v6}, Lim/tpelyyftgw/messenger/UserConfig;->getClientUserId()I

    move-result v6

    if-ne v5, v6, :cond_86

    :cond_78
    iget-object v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    iget v5, v5, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I

    const/16 v6, 0x2710

    if-le v5, v6, :cond_86

    .line 441
    iget v5, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->onlineCount:I

    add-int/lit8 v5, v5, 0x1

    iput v5, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->onlineCount:I

    .line 437
    .end local v3    # "participant":Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipant;
    .end local v4    # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    :cond_86
    add-int/lit8 v2, v2, 0x1

    goto :goto_3a

    .line 447
    .end local v2    # "a":I
    :cond_89
    :goto_89
    return-void
.end method

.method public updateSubtitle()V
    .registers 13

    .line 264
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    if-nez v0, :cond_5

    .line 265
    return-void

    .line 267
    :cond_5
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentUser()Lim/tpelyyftgw/tgnet/TLRPC$User;

    move-result-object v0

    .line 268
    .local v0, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/UserObject;->isUserSelf(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z

    move-result v1

    if-nez v1, :cond_21f

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->isInScheduleMode()Z

    move-result v1

    if-eqz v1, :cond_19

    goto/16 :goto_21f

    .line 274
    :cond_19
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChat()Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    move-result-object v1

    .line 275
    .local v1, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    iget v2, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v2}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;

    move-result-object v2

    iget-object v2, v2, Lim/tpelyyftgw/messenger/MessagesController;->printingStrings:Landroid/util/LongSparseArray;

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/ChatActivity;->getDialogId()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/CharSequence;

    .line 276
    .local v2, "printString":Ljava/lang/CharSequence;
    if-eqz v2, :cond_45

    .line 277
    const-string v3, "..."

    filled-new-array {v3}, [Ljava/lang/String;

    move-result-object v3

    const-string v4, ""

    filled-new-array {v4}, [Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v3, v4}, Landroid/text/TextUtils;->replace(Ljava/lang/CharSequence;[Ljava/lang/String;[Ljava/lang/CharSequence;)Ljava/lang/CharSequence;

    move-result-object v2

    .line 280
    :cond_45
    const/4 v3, 0x0

    .line 281
    .local v3, "useOnlineColor":Z
    const/4 v4, 0x1

    if-eqz v2, :cond_61

    invoke-interface {v2}, Ljava/lang/CharSequence;->length()I

    move-result v5

    if-eqz v5, :cond_61

    invoke-static {v1}, Lim/tpelyyftgw/messenger/ChatObject;->isChannel(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v5

    if-eqz v5, :cond_5a

    iget-boolean v5, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->megagroup:Z

    if-nez v5, :cond_5a

    goto :goto_61

    .line 364
    :cond_5a
    move-object v5, v2

    .line 365
    .local v5, "newSubtitle":Ljava/lang/CharSequence;
    const/4 v3, 0x1

    .line 366
    invoke-direct {p0, v4}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->setTypingAnimation(Z)V

    goto/16 :goto_1f7

    .line 282
    .end local v5    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_61
    :goto_61
    const/4 v5, 0x0

    invoke-direct {p0, v5}, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->setTypingAnimation(Z)V

    .line 283
    if-eqz v1, :cond_179

    .line 284
    iget-object v6, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->parentFragment:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v6}, Lim/tpelyyftgw/ui/ChatActivity;->getCurrentChatInfo()Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;

    move-result-object v6

    .line 285
    .local v6, "info":Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;
    invoke-static {v1}, Lim/tpelyyftgw/messenger/ChatObject;->isChannel(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v7

    const-string v8, "Members"

    if-eqz v7, :cond_141

    .line 286
    if-eqz v6, :cond_cc

    iget v7, v6, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants_count:I

    if-eqz v7, :cond_cc

    .line 287
    iget-boolean v7, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->megagroup:Z

    if-eqz v7, :cond_88

    .line 291
    iget v4, v6, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants_count:I

    invoke-static {v8, v4}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .local v4, "newSubtitle":Ljava/lang/CharSequence;
    goto/16 :goto_177

    .line 294
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_88
    new-array v7, v4, [I

    .line 295
    .local v7, "result":[I
    iget v9, v6, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants_count:I

    invoke-static {v9, v7}, Lim/tpelyyftgw/messenger/LocaleController;->formatShortNumber(I[I)Ljava/lang/String;

    move-result-object v9

    .line 296
    .local v9, "shortNumber":Ljava/lang/String;
    iget-boolean v10, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->megagroup:Z

    const-string v11, "%d"

    if-eqz v10, :cond_af

    .line 297
    aget v10, v7, v5

    invoke-static {v8, v10}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v8

    new-array v4, v4, [Ljava/lang/Object;

    aget v10, v7, v5

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v4, v5

    invoke-static {v11, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v8, v4, v9}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_c9

    .line 299
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_af
    aget v8, v7, v5

    const-string v10, "Subscribers"

    invoke-static {v10, v8}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v8

    new-array v4, v4, [Ljava/lang/Object;

    aget v10, v7, v5

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    aput-object v10, v4, v5

    invoke-static {v11, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v8, v4, v9}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    .line 301
    .end local v7    # "result":[I
    .end local v9    # "shortNumber":Ljava/lang/String;
    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :goto_c9
    move-object v5, v4

    goto/16 :goto_177

    .line 303
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_cc
    iget-boolean v4, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->megagroup:Z

    if-eqz v4, :cond_11d

    .line 304
    if-nez v6, :cond_e2

    .line 305
    const v4, 0x7f0f082b

    const-string v5, "Loading"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto/16 :goto_177

    .line 307
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_e2
    iget-boolean v4, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->has_geo:Z

    if-eqz v4, :cond_f6

    .line 308
    const v4, 0x7f0f0889

    const-string v5, "MegaLocation"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto/16 :goto_177

    .line 309
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_f6
    iget-object v4, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->username:Ljava/lang/String;

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

    move-result v4

    if-nez v4, :cond_10e

    .line 310
    const v4, 0x7f0f088d

    const-string v5, "MegaPublic"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto/16 :goto_177

    .line 312
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_10e
    const v4, 0x7f0f088a

    const-string v5, "MegaPrivate"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_177

    .line 316
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_11d
    iget v4, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->flags:I

    and-int/lit8 v4, v4, 0x40

    if-eqz v4, :cond_132

    .line 317
    const v4, 0x7f0f0392

    const-string v5, "ChannelPublic"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_177

    .line 319
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_132
    const v4, 0x7f0f038f

    const-string v5, "ChannelPrivate"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_177

    .line 324
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_141
    invoke-static {v1}, Lim/tpelyyftgw/messenger/ChatObject;->isKickedFromChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v4

    if-eqz v4, :cond_152

    .line 325
    const v4, 0x7f0f12e0

    const-string v5, "YouWereKicked"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_177

    .line 326
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_152
    invoke-static {v1}, Lim/tpelyyftgw/messenger/ChatObject;->isLeftFromChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v4

    if-eqz v4, :cond_163

    .line 327
    const v4, 0x7f0f12d5

    const-string v5, "YouLeft"

    invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .restart local v4    # "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_177

    .line 329
    .end local v4    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_163
    iget v4, v1, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->participants_count:I

    .line 330
    .local v4, "count":I
    if-eqz v6, :cond_173

    iget-object v5, v6, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants:Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;

    if-eqz v5, :cond_173

    .line 331
    iget-object v5, v6, Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;->participants:Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;

    iget-object v5, v5, Lim/tpelyyftgw/tgnet/TLRPC$ChatParticipants;->participants:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v4

    .line 336
    :cond_173
    invoke-static {v8, v4}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    .line 340
    .end local v4    # "count":I
    .end local v6    # "info":Lim/tpelyyftgw/tgnet/TLRPC$ChatFull;
    .restart local v5    # "newSubtitle":Ljava/lang/CharSequence;
    :goto_177
    goto/16 :goto_1f7

    .end local v5    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_179
    if-eqz v0, :cond_1f5

    .line 341
    iget v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v4}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;

    move-result-object v4

    iget v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/messenger/MessagesController;->getUser(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$User;

    move-result-object v4

    .line 342
    .local v4, "newUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
    if-eqz v4, :cond_18e

    .line 343
    move-object v0, v4

    .line 346
    :cond_18e
    iget v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    iget v7, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v7}, Lim/tpelyyftgw/messenger/UserConfig;->getInstance(I)Lim/tpelyyftgw/messenger/UserConfig;

    move-result-object v7

    invoke-virtual {v7}, Lim/tpelyyftgw/messenger/UserConfig;->getClientUserId()I

    move-result v7

    if-ne v6, v7, :cond_1a6

    .line 347
    const v5, 0x7f0f03d1

    const-string v6, "ChatYourSelf"

    invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    .local v5, "newStatus":Ljava/lang/String;
    goto :goto_1f3

    .line 348
    .end local v5    # "newStatus":Ljava/lang/String;
    :cond_1a6
    iget v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    const v7, 0x514c8

    if-eq v6, v7, :cond_1ea

    iget v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    const v7, 0xbdb28

    if-eq v6, v7, :cond_1ea

    iget v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    const v7, 0xa719

    if-ne v6, v7, :cond_1bc

    goto :goto_1ea

    .line 350
    :cond_1bc
    invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->isSupportUser(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z

    move-result v6

    if-eqz v6, :cond_1cc

    .line 351
    const v5, 0x7f0f102e

    const-string v6, "SupportStatus"

    invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    .restart local v5    # "newStatus":Ljava/lang/String;
    goto :goto_1f3

    .line 352
    .end local v5    # "newStatus":Ljava/lang/String;
    :cond_1cc
    iget-boolean v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot:Z

    if-eqz v6, :cond_1da

    .line 353
    const v5, 0x7f0f027f

    const-string v6, "Bot"

    invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    .restart local v5    # "newStatus":Ljava/lang/String;
    goto :goto_1f3

    .line 355
    .end local v5    # "newStatus":Ljava/lang/String;
    :cond_1da
    iget-object v6, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->isOnline:[Z

    aput-boolean v5, v6, v5

    .line 356
    iget v7, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->currentAccount:I

    invoke-static {v7, v0, v6}, Lim/tpelyyftgw/messenger/LocaleController;->formatUserStatus(ILim/tpelyyftgw/tgnet/TLRPC$User;[Z)Ljava/lang/String;

    move-result-object v6

    .line 357
    .local v6, "newStatus":Ljava/lang/String;
    iget-object v7, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->isOnline:[Z

    aget-boolean v3, v7, v5

    move-object v5, v6

    goto :goto_1f3

    .line 349
    .end local v6    # "newStatus":Ljava/lang/String;
    :cond_1ea
    :goto_1ea
    const v5, 0x7f0f0f5b

    const-string v6, "ServiceNotifications"

    invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    .line 359
    .restart local v5    # "newStatus":Ljava/lang/String;
    :goto_1f3
    nop

    .line 360
    .end local v4    # "newUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
    .local v5, "newSubtitle":Ljava/lang/CharSequence;
    goto :goto_1f7

    .line 361
    .end local v5    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_1f5
    const-string v5, ""

    .line 368
    .restart local v5    # "newSubtitle":Ljava/lang/CharSequence;
    :goto_1f7
    if-eqz v3, :cond_1fc

    const-string v4, "chat_status"

    goto :goto_1fe

    :cond_1fc
    const-string v4, "actionBarDefaultSubtitle"

    :goto_1fe
    iput-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitleColorKey:Ljava/lang/String;

    .line 369
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    if-nez v4, :cond_21c

    .line 370
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 371
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitleColorKey:Ljava/lang/String;

    invoke-static {v6}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v6

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 372
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitleColorKey:Ljava/lang/String;

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    goto :goto_21e

    .line 374
    :cond_21c
    iput-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->lastSubtitle:Ljava/lang/CharSequence;

    .line 376
    :goto_21e
    return-void

    .line 269
    .end local v1    # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    .end local v2    # "printString":Ljava/lang/CharSequence;
    .end local v3    # "useOnlineColor":Z
    .end local v5    # "newSubtitle":Ljava/lang/CharSequence;
    :cond_21f
    :goto_21f
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getVisibility()I

    move-result v1

    const/16 v2, 0x8

    if-eq v1, v2, :cond_22e

    .line 270
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAvatarContainer;->subtitleTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setVisibility(I)V

    .line 272
    :cond_22e
    return-void
.end method