导航菜单

页面标题

页面副标题

Tasker v6.5.11 - ReceiverStaticMediaButton.java 源代码

正在查看: Tasker v6.5.11 应用的 ReceiverStaticMediaButton.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package net.dinglisch.android.taskerm;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class ReceiverStaticMediaButton extends BroadcastReceiver {
    private static boolean a = false;

    private static boolean a() {
        return !dq.O1() || a;
    }

    public static void b(boolean z) {
        a = z;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String action;
        Object obj;
        r7.f("ReceiverStaticMediaButton", "onreceive");
        if (!a() || (action = intent.getAction()) == null) {
            return;
        }
        if (!action.equals("android.intent.action.MEDIA_BUTTON")) {
            r7.k("ReceiverStaticMediaButton", "action code unhandled");
            return;
        }
        Bundle extras = intent.getExtras();
        if (extras != null && (obj = extras.get("android.intent.extra.KEY_EVENT")) != null) {
            r7.f("ReceiverStaticMediaButton", obj.toString());
        }
        MonitorService.B9(context, intent, -1);
    }
}