apkfuckery/com.discord/smali/androidx/media/MediaSessionManagerImplApi28.smali

67 lines
1.9 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class Landroidx/media/MediaSessionManagerImplApi28;
.super Landroidx/media/MediaSessionManagerImplApi21;
2019-02-04 20:29:01 +00:00
.source "MediaSessionManagerImplApi28.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1c
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/media/MediaSessionManagerImplApi28$RemoteUserInfoImplApi28;
}
.end annotation
# instance fields
.field mObject:Landroid/media/session/MediaSessionManager;
# direct methods
.method constructor <init>(Landroid/content/Context;)V
.locals 1
invoke-direct {p0, p1}, Landroidx/media/MediaSessionManagerImplApi21;-><init>(Landroid/content/Context;)V
const-string v0, "media_session"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/media/session/MediaSessionManager;
iput-object p1, p0, Landroidx/media/MediaSessionManagerImplApi28;->mObject:Landroid/media/session/MediaSessionManager;
return-void
.end method
# virtual methods
.method public isTrustedForMediaControl(Landroidx/media/MediaSessionManager$RemoteUserInfoImpl;)Z
.locals 1
instance-of v0, p1, Landroidx/media/MediaSessionManagerImplApi28$RemoteUserInfoImplApi28;
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/media/MediaSessionManagerImplApi28;->mObject:Landroid/media/session/MediaSessionManager;
check-cast p1, Landroidx/media/MediaSessionManagerImplApi28$RemoteUserInfoImplApi28;
iget-object p1, p1, Landroidx/media/MediaSessionManagerImplApi28$RemoteUserInfoImplApi28;->mObject:Landroid/media/session/MediaSessionManager$RemoteUserInfo;
invoke-virtual {v0, p1}, Landroid/media/session/MediaSessionManager;->isTrustedForMediaControl(Landroid/media/session/MediaSessionManager$RemoteUserInfo;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method