UserPostFragment.smali

.class public Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;
.super Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;
.source "SourceFile"


# instance fields
.field private p:Z


# direct methods
.method public constructor <init>()V
    .registers 2

    .line 19
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;-><init>()V

    const/4 v0, 0x1

    .line 20
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    return-void
.end method


# virtual methods
.method public final a(IZ)V
    .registers 4

    .line 53
    invoke-super {p0, p1, p2}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;->a(IZ)V

    .line 54
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    if-eqz p1, :cond_37

    .line 2139
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e:Z

    if-eqz p1, :cond_37

    const/4 p1, 0x0

    .line 55
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    .line 56
    sget-byte p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;->b:B

    const-class p2, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    invoke-static {p1, p2}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->getInstance(ILjava/lang/Class;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/user/a/a;->r:Ljava/lang/String;

    sget-byte v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->u:B

    .line 57
    invoke-static {v0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/user/a/a;->A:Ljava/lang/String;

    sget-byte v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->aa:B

    .line 58
    invoke-static {v0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    .line 59
    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->report()V

    :cond_37
    return-void
.end method

.method public final a(Z)V
    .registers 4

    .line 41
    invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;->a(Z)V

    if-eqz p1, :cond_44

    .line 42
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    if-eqz p1, :cond_44

    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->g:Z

    if-nez p1, :cond_44

    const/4 p1, 0x0

    .line 43
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    .line 44
    sget-byte p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;->b:B

    const-class v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    invoke-static {p1, v0}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->getInstance(ILjava/lang/Class;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    sget-object v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->r:Ljava/lang/String;

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->m:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;

    .line 45
    invoke-virtual {v1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I

    move-result v1

    if-lez v1, :cond_27

    sget-byte v1, Lcom/imo/android/imoim/feeds/ui/user/a/a;->v:B

    goto :goto_29

    :cond_27
    sget-byte v1, Lcom/imo/android/imoim/feeds/ui/user/a/a;->u:B

    :goto_29
    invoke-static {v1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    sget-object v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->A:Ljava/lang/String;

    sget-byte v1, Lcom/imo/android/imoim/feeds/ui/user/a/a;->aa:B

    .line 46
    invoke-static {v1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    .line 47
    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->report()V

    :cond_44
    return-void
.end method

.method public final a(ZI)V
    .registers 4

    .line 65
    invoke-super {p0, p1, p2}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;->a(ZI)V

    .line 66
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/user/profile/b;->a(Landroid/content/Context;)Lcom/imo/android/imoim/feeds/ui/user/profile/b;

    move-result-object p1

    .line 67
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->g()I

    move-result p2

    invoke-static {p2}, Lcom/masala/share/stat/aa;->c(I)Ljava/lang/String;

    move-result-object p2

    .line 3133
    iput-object p2, p1, Lcom/imo/android/imoim/feeds/ui/user/profile/b;->b:Ljava/lang/String;

    .line 3139
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e:Z

    if-eqz p1, :cond_54

    .line 68
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    if-eqz p1, :cond_54

    .line 69
    sget-byte p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;->b:B

    const-class p2, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    invoke-static {p1, p2}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->getInstance(ILjava/lang/Class;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/user/a/a;->A:Ljava/lang/String;

    sget-byte v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->aa:B

    .line 70
    invoke-static {v0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/user/a/a;->r:Ljava/lang/String;

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->m:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;

    .line 71
    invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I

    move-result v0

    if-lez v0, :cond_42

    sget-byte v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->v:B

    goto :goto_44

    :cond_42
    sget-byte v0, Lcom/imo/android/imoim/feeds/ui/user/a/a;->u:B

    :goto_44
    invoke-static {v0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/user/a/a;

    .line 72
    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/user/a/a;->report()V

    const/4 p1, 0x0

    .line 73
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->p:Z

    :cond_54
    return-void
.end method

.method protected final e()V
    .registers 4

    .line 24
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    invoke-direct {v0}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;-><init>()V

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    .line 25
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    iget v1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->c:I

    iput v1, v0, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->c:I

    .line 26
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/data/d;->a()I

    move-result v1

    iput v1, v0, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->a:I

    .line 27
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    const/16 v1, 0x17

    iput v1, v0, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->b:I

    .line 28
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    iget v0, v0, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->a:I

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    iget v1, v1, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->b:I

    invoke-static {v0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/data/d;->a(II)Lcom/imo/android/imoim/feeds/ui/detail/data/d;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->k:Lcom/imo/android/imoim/feeds/ui/detail/data/d;

    .line 29
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->k:Lcom/imo/android/imoim/feeds/ui/detail/data/d;

    .line 1148
    iget v0, v0, Lcom/imo/android/imoim/feeds/ui/detail/data/d;->a:I

    .line 29
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    iget v1, v1, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->b:I

    invoke-static {v0, v1}, Lcom/masala/share/proto/puller/o;->a(II)Lcom/masala/share/proto/puller/o;

    move-result-object v0

    check-cast v0, Lcom/masala/share/proto/puller/h;

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->l:Lcom/masala/share/proto/puller/h;

    .line 30
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->l:Lcom/masala/share/proto/puller/h;

    check-cast v0, Lcom/masala/share/proto/puller/l;

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    iget v1, v1, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;->c:I

    .line 2029
    iput v1, v0, Lcom/masala/share/proto/puller/l;->a:I

    .line 31
    invoke-static {}, Lcom/imo/android/imoim/feeds/g/a/b;->a()Lcom/imo/android/imoim/feeds/g/a/b;

    move-result-object v0

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->j:Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment$a;

    const-string v2, "UserPostFragment"

    invoke-virtual {v0, v2, v1}, Lcom/imo/android/imoim/feeds/g/a/b;->a(Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method protected final g()I
    .registers 2

    .line 36
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->c:I

    invoke-static {v0}, Lcom/masala/share/utils/e/b;->c(I)Z

    move-result v0

    if-eqz v0, :cond_a

    const/4 v0, 0x1

    return v0

    :cond_a
    const/4 v0, 0x3

    return v0
.end method

.method public onBusEvent(Ljava/lang/String;Landroid/os/Bundle;)V
    .registers 5

    .line 91
    invoke-super {p0, p1, p2}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;->onBusEvent(Ljava/lang/String;Landroid/os/Bundle;)V

    const-string v0, "local_event_video_deleted"

    .line 92
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1a

    if-eqz p2, :cond_1a

    const-wide/16 v0, 0x0

    const-string p1, "key_video_id"

    .line 94
    invoke-virtual {p2, p1, v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J

    move-result-wide p1

    .line 95
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/UserPostFragment;->l:Lcom/masala/share/proto/puller/h;

    invoke-virtual {v0, p1, p2}, Lcom/masala/share/proto/puller/h;->a(J)V

    :cond_1a
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .registers 3

    .line 79
    invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;->onCreate(Landroid/os/Bundle;)V

    .line 80
    invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;

    move-result-object p1

    const-string v0, "local_event_video_deleted"

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

    move-result-object v0

    invoke-interface {p1, p0, v0}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;[Ljava/lang/String;)V

    return-void
.end method

.method public onDestroy()V
    .registers 2

    .line 85
    invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/user/profile/BaseUserPostFragment;->onDestroy()V

    .line 86
    invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;

    move-result-object v0

    invoke-interface {v0, p0}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;)V

    return-void
.end method