g.smali
.class public Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;
.super Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;
.source "TribeDetailLeaderItemViewModel.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/sandboxol/common/base/viewmodel/ListItemViewModel<",
"Lcom/sandboxol/center/entity/TribeClanMembersBean;",
">;"
}
.end annotation
# instance fields
.field public a:Lcom/sandboxol/common/command/ReplyCommand;
.field private b:I
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/sandboxol/center/entity/TribeClanMembersBean;I)V
.registers 4
.line 1
invoke-direct {p0, p1, p2}, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;-><init>(Landroid/content/Context;Ljava/lang/Object;)V
.line 2
new-instance p1, Lcom/sandboxol/common/command/ReplyCommand;
new-instance p2, Lcom/sandboxol/blockymods/view/fragment/tribedetail/a;
invoke-direct {p2, p0}, Lcom/sandboxol/blockymods/view/fragment/tribedetail/a;-><init>(Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;)V
invoke-direct {p1, p2}, Lcom/sandboxol/common/command/ReplyCommand;-><init>(Lrx/functions/Action0;)V
iput-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;->a:Lcom/sandboxol/common/command/ReplyCommand;
.line 3
iput p3, p0, Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;->b:I
return-void
.end method
.method public static synthetic a(Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;)V
.registers 1
invoke-direct {p0}, Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;->h()V
return-void
.end method
.method private h()V
.registers 7
.line 1
iget-object v0, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->item:Ljava/lang/Object;
check-cast v0, Lcom/sandboxol/center/entity/TribeClanMembersBean;
invoke-virtual {v0}, Lcom/sandboxol/center/entity/TribeClanMembersBean;->getUserId()J
move-result-wide v0
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v2
iget-object v2, v2, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v2}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Long;
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v2
cmp-long v4, v0, v2
if-eqz v4, :cond_32
.line 2
iget-object v0, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->context:Landroid/content/Context;
const/4 v1, 0x0
new-instance v2, Lcom/sandboxol/blockymods/entity/FriendActivityIntentInfo;
iget-object v3, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->item:Ljava/lang/Object;
check-cast v3, Lcom/sandboxol/center/entity/TribeClanMembersBean;
invoke-virtual {v3}, Lcom/sandboxol/center/entity/TribeClanMembersBean;->getUserId()J
move-result-wide v3
const/4 v5, 0x2
invoke-direct {v2, v3, v4, v5}, Lcom/sandboxol/blockymods/entity/FriendActivityIntentInfo;-><init>(JI)V
iget v3, p0, Lcom/sandboxol/blockymods/view/fragment/tribedetail/g;->b:I
invoke-static {v0, v1, v2, v3}, Lcom/sandboxol/blockymods/view/fragment/friend/G;->a(Landroid/content/Context;Lcom/sandboxol/greendao/entity/Friend;Lcom/sandboxol/blockymods/entity/FriendActivityIntentInfo;I)V
:cond_32
return-void
.end method