导航菜单

页面标题

页面副标题

Tasker v6.6.3 - ActivityTileLongClick.java 源代码

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

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


package com.joaomgcd.taskerm.util;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import net.dinglisch.android.taskerm.ExecuteService;
import net.dinglisch.android.taskerm.Settings;
import net.dinglisch.android.taskerm.wp;

public final class ActivityTileLongClick extends Activity {
    private static final void b(ActivityTileLongClick activityTileLongClick, boolean z) {
        if (!z) {
            Intent intent = new Intent("android.service.quicksettings.action.QS_TILE_PREFERENCES");
            intent.setComponent(new ComponentName(activityTileLongClick, (Class<?>) Settings.class));
            activityTileLongClick.startActivity(intent);
        }
        activityTileLongClick.finish();
    }

    public static final Integer c(String str) {
        return sk.q.t(sk.q.S0(str, "QSTileService", null, 2, null));
    }

    @Override
    protected void onCreate(Bundle bundle) {
        Bundle extras;
        ComponentName componentName;
        final String className;
        super.onCreate(bundle);
        try {
            Intent intent = getIntent();
            if (intent != null && (extras = intent.getExtras()) != null && (componentName = (ComponentName) extras.getParcelable("android.intent.extra.COMPONENT_NAME")) != null && (className = componentName.getClassName()) != null) {
                net.dinglisch.android.taskerm.o7.f("TileLongClick", "className: " + className);
                ik.a aVar = new ik.a() {
                    @Override
                    public final Object e() {
                        Integer c;
                        c = ActivityTileLongClick.c(className);
                        return c;
                    }
                };
                boolean z = true;
                Integer num = (Integer) b7.n6(null, aVar, 1, null);
                if (num == null) {
                    b(this, false);
                    return;
                }
                int intValue = num.intValue();
                String M1 = Settings.M1(this, intValue);
                String V = M1 != null ? l7.V(M1) : null;
                if (V != null) {
                    ExtensionsContextKt.K4(this, V, null, 2, null);
                }
                String V1 = Settings.V1(this, intValue);
                if (V1 != null) {
                    ExecuteService.u7(this, V1, null, null, wp.a1("qstile_long", V1));
                    b(this, true);
                    return;
                } else {
                    if (V == null) {
                        z = false;
                    }
                    b(this, z);
                    return;
                }
            }
            b(this, false);
        } catch (Throwable unused) {
            b(this, false);
        }
    }
}