194 lines
4.3 KiB
Smali
194 lines
4.3 KiB
Smali
.class public Lcom/moji/bus/Bus;
|
|
.super Ljava/lang/Object;
|
|
.source "Bus.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/bus/Bus$SingletonHolder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 24
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 25
|
|
invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/bus/Bus;->a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lcom/moji/bus/Bus$1;)V
|
|
.locals 0
|
|
|
|
.line 20
|
|
invoke-direct {p0}, Lcom/moji/bus/Bus;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()Lcom/moji/bus/Bus;
|
|
.locals 1
|
|
|
|
.line 29
|
|
invoke-static {}, Lcom/moji/bus/Bus$SingletonHolder;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
.line 33
|
|
iget-object v0, p0, Lcom/moji/bus/Bus;->a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
invoke-virtual {v0, p1}, Lorg/greenrobot/eventbus/EventBus;->a(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Lcom/moji/bus/event/BusEventData;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Lcom/moji/bus/event/BusEventData;",
|
|
">(",
|
|
"Ljava/lang/String;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 63
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 69
|
|
iget-object p1, p0, Lcom/moji/bus/Bus;->a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
invoke-virtual {p1, p2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
.line 67
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "data must not be null."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 64
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "BusEvent Name must not be null."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/String;",
|
|
"TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 53
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 59
|
|
iget-object p1, p0, Lcom/moji/bus/Bus;->a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
invoke-virtual {p1, p2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
.line 57
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "data must not be null."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 54
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "BusEvent Name must not be null."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public b(Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
.line 37
|
|
iget-object v0, p0, Lcom/moji/bus/Bus;->a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
invoke-virtual {v0, p1}, Lorg/greenrobot/eventbus/EventBus;->c(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 73
|
|
iget-object v0, p0, Lcom/moji/bus/Bus;->a:Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
invoke-virtual {v0, p1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|