apkfuckery/com.discord/smali/androidx/media/MediaBrowserServiceCompat$3.smali
2020-11-12 02:11:44 +00:00

116 lines
3.3 KiB
Smali

.class public Landroidx/media/MediaBrowserServiceCompat$3;
.super Landroidx/media/MediaBrowserServiceCompat$Result;
.source "MediaBrowserServiceCompat.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/media/MediaBrowserServiceCompat;->performSearch(Ljava/lang/String;Landroid/os/Bundle;Landroidx/media/MediaBrowserServiceCompat$ConnectionRecord;Landroid/support/v4/os/ResultReceiver;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/media/MediaBrowserServiceCompat$Result<",
"Ljava/util/List<",
"Landroid/support/v4/media/MediaBrowserCompat$MediaItem;",
">;>;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Landroidx/media/MediaBrowserServiceCompat;
.field public final synthetic val$receiver:Landroid/support/v4/os/ResultReceiver;
# direct methods
.method public constructor <init>(Landroidx/media/MediaBrowserServiceCompat;Ljava/lang/Object;Landroid/support/v4/os/ResultReceiver;)V
.locals 0
iput-object p1, p0, Landroidx/media/MediaBrowserServiceCompat$3;->this$0:Landroidx/media/MediaBrowserServiceCompat;
iput-object p3, p0, Landroidx/media/MediaBrowserServiceCompat$3;->val$receiver:Landroid/support/v4/os/ResultReceiver;
invoke-direct {p0, p2}, Landroidx/media/MediaBrowserServiceCompat$Result;-><init>(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public bridge synthetic onResultSent(Ljava/lang/Object;)V
.locals 0
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Landroidx/media/MediaBrowserServiceCompat$3;->onResultSent(Ljava/util/List;)V
return-void
.end method
.method public onResultSent(Ljava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroid/support/v4/media/MediaBrowserCompat$MediaItem;",
">;)V"
}
.end annotation
invoke-virtual {p0}, Landroidx/media/MediaBrowserServiceCompat$Result;->getFlags()I
move-result v0
and-int/lit8 v0, v0, 0x4
if-nez v0, :cond_1
if-nez p1, :cond_0
goto :goto_0
:cond_0
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
const/4 v1, 0x0
new-array v2, v1, [Landroid/support/v4/media/MediaBrowserCompat$MediaItem;
invoke-interface {p1, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Landroid/os/Parcelable;
const-string v2, "search_results"
invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
iget-object p1, p0, Landroidx/media/MediaBrowserServiceCompat$3;->val$receiver:Landroid/support/v4/os/ResultReceiver;
invoke-virtual {p1, v1, v0}, Landroid/support/v4/os/ResultReceiver;->b(ILandroid/os/Bundle;)V
return-void
:cond_1
:goto_0
iget-object p1, p0, Landroidx/media/MediaBrowserServiceCompat$3;->val$receiver:Landroid/support/v4/os/ResultReceiver;
const/4 v0, -0x1
const/4 v1, 0x0
invoke-virtual {p1, v0, v1}, Landroid/support/v4/os/ResultReceiver;->b(ILandroid/os/Bundle;)V
return-void
.end method