d$c.smali
.class public final Ljj/d$c;
.super Ljava/lang/Object;
.source "RNEventEmitter.kt"
# interfaces
.implements Landroidx/lifecycle/Observer;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Ljj/d;->b()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Landroidx/lifecycle/Observer<",
"Ltk/d<",
"+",
"Lsk/a;",
">;>;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0010\u0000\u001a\u00020\u00012\u001a\u0010\u0002\u001a\u0016\u0012\u0004\u0012\u00020\u0004 \u0005*\n\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u00030\u0003H\n\u00a2\u0006\u0002\u0008\u0006"
}
d2 = {
"<anonymous>",
"",
"it",
"Lcom/shopee/foody/driver/user/model/common/Result;",
"Lcom/shopee/foody/driver/user/model/DriverStatus;",
"kotlin.jvm.PlatformType",
"onChanged"
}
k = 0x3
mv = {
0x1,
0x1,
0x10
}
.end annotation
# static fields
.field public static final a:Ljj/d$c;
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Ljj/d$c;
invoke-direct {v0}, Ljj/d$c;-><init>()V
sput-object v0, Ljj/d$c;->a:Ljj/d$c;
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Ltk/d;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ltk/d<",
"+",
"Lsk/a;",
">;)V"
}
.end annotation
instance-of v0, p1, Ltk/d$b;
if-eqz v0, :cond_3d
sget-object v0, Lcom/shopee/android/base/common/gson/Gsons;->b:Lcom/shopee/android/base/common/gson/Gsons;
invoke-virtual {v0}, Lcom/shopee/android/base/common/gson/Gsons;->a()Lcom/google/gson/Gson;
move-result-object v0
check-cast p1, Ltk/d$b;
invoke-virtual {p1}, Ltk/d$b;->a()Ljava/lang/Object;
move-result-object p1
invoke-static {v0, p1}, Le9/a;->a(Lcom/google/gson/Gson;Ljava/lang/Object;)Lp5/l;
move-result-object p1
if-eqz p1, :cond_3d
invoke-virtual {p1}, Lp5/i;->toString()Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_3d
const-string v0, "Gsons.DEFAULT.safelyToJs\u2026 ?: return@observeForever"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lqa/d;->e:Lqa/d$a;
new-instance v1, Ljj/d$c$a;
invoke-direct {v1, p1}, Ljj/d$c$a;-><init>(Ljava/lang/String;)V
const-string v2, "RNEventListener"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
const-class v0, Lcom/shopee/android/react/service/IReactService;
invoke-static {v0}, Ltb/b;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/shopee/android/react/service/IReactService;
if-eqz v0, :cond_3d
const-string v1, "driverStatusEvent"
invoke-interface {v0, v1, p1}, Lcom/shopee/android/react/service/IReactService;->emitEventToRN(Ljava/lang/String;Ljava/lang/String;)V
nop
:cond_3d
return-void
.end method
.method public bridge synthetic onChanged(Ljava/lang/Object;)V
.registers 2
check-cast p1, Ltk/d;
invoke-virtual {p0, p1}, Ljj/d$c;->a(Ltk/d;)V
return-void
.end method