86 lines
2.4 KiB
Smali
86 lines
2.4 KiB
Smali
.class Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$MyVolumeReceiver;
|
|
.super Landroid/content/BroadcastReceiver;
|
|
.source "ScreenSwitchUtils.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x2
|
|
name = "MyVolumeReceiver"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;)V
|
|
.locals 0
|
|
|
|
.line 148
|
|
iput-object p1, p0, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$MyVolumeReceiver;->a:Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;
|
|
|
|
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$1;)V
|
|
.locals 0
|
|
|
|
.line 148
|
|
invoke-direct {p0, p1}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$MyVolumeReceiver;-><init>(Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
|
|
.locals 0
|
|
|
|
.line 152
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "android.media.VOLUME_CHANGED_ACTION"
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 153
|
|
iget-object p1, p0, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$MyVolumeReceiver;->a:Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;
|
|
|
|
invoke-static {p1}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->a(Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;)Landroid/media/AudioManager;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p2, 0x3
|
|
|
|
invoke-virtual {p1, p2}, Landroid/media/AudioManager;->getStreamVolume(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 154
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerManager;->b()Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 156
|
|
invoke-interface {p2, p1}, Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;->d(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|