导航菜单

页面标题

页面副标题

Tasker v6.5.11 - ActivitySecondaryApp.java 源代码

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

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


package com.joaomgcd.taskerm.util;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.joaomgcd.taskerm.helper.HelperMonitorService;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;

public final class ActivitySecondaryApp extends Activity {

    static final class a extends yj.q implements xj.a<lj.e0> {
        a() {
            super(0);
        }

        public final void a() {
            we.l0 l0Var = (we.l0) com.joaomgcd.taskerm.dialog.a.e3(new we.k(ActivitySecondaryApp.this, 2131887659, 2131887323, 2131886907, 2131886889, 2131888819, false, 0, (String) null, 0, (Integer) null, 1984, (yj.h) null)).f();
            if (!l0Var.k()) {
                if (l0Var.n()) {
                    com.joaomgcd.taskerm.dialog.a.d1(ActivitySecondaryApp.this, 2131887659, 2131887322).f();
                    j.a(ActivitySecondaryApp.this, false).h();
                } else if (l0Var.o()) {
                    ExtensionsContextKt.q(ActivitySecondaryApp.this, "https://www.youtube.com/watch?v=WLsw2D2NJVU", false, false, false, 14, null);
                }
            }
            ActivitySecondaryApp.this.finish();
        }

        @Override
        public lj.e0 invoke() {
            a();
            return lj.e0.a;
        }
    }

    @Override
    @SuppressLint({"CheckResult"})
    protected void onCreate(Bundle bundle) {
        Collection l;
        super.onCreate(bundle);
        net.dinglisch.android.taskerm.r7.f("SecondaryApp", "Opened Activity");
        getWindow().addFlags(6815872);
        if (!HelperMonitorService.F.h(this, 2077)) {
            net.dinglisch.android.taskerm.r7.f("SecondaryApp", "No Secondary App Event Configured");
            pg.w0.m0(new a());
            return;
        }
        Intent intent = getIntent();
        vf.b bVar = null;
        Uri data = intent != null ? intent.getData() : null;
        if (data != null) {
            Set<String> queryParameterNames = data.getQueryParameterNames();
            if (queryParameterNames != null) {
                Set<String> set = queryParameterNames;
                l = new ArrayList(kotlin.collections.r.v(set, 10));
                for (String str : set) {
                    yj.p.f(str);
                    l.add(new vf.a((String) null, str, data.getQueryParameter(str), false, 8, (yj.h) null));
                }
            } else {
                l = null;
            }
        } else {
            l = kotlin.collections.r.l();
        }
        net.dinglisch.android.taskerm.r7.f("SecondaryApp", "Triggered Secondary App From Activity");
        if (l != null) {
            bVar = new vf.b();
            bVar.addAll(l);
        }
        com.joaomgcd.taskerm.event.app.k.b(this, bVar);
        finish();
    }
}