导航菜单

页面标题

页面副标题

Tasker v6.6.3 - WidgetV2Configuration.java 源代码

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

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


package com.joaomgcd.taskerwidgetv2.configuration;

import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import com.joaomgcd.taskerm.util.b7;
import com.joaomgcd.taskerm.util.l7;
import com.joaomgcd.taskerwidgetv2.WidgetV2;
import com.joaomgcd.taskerwidgetv2.configuration.WidgetV2Configuration;
import i4.j0;
import uk.n0;

public final class WidgetV2Configuration extends Hilt_WidgetV2Configuration {

    @bk.f(c = "com.joaomgcd.taskerwidgetv2.configuration.WidgetV2Configuration$onCreate$1", f = "WidgetV2Configuration.kt", l = {56}, m = "invokeSuspend")
    static final class a extends bk.m implements ik.p<n0, zj.e<? super vj.e0>, Object> {
        Object t;
        Object u;
        Object v;
        int w;
        final WidgetV2Configuration y;

        a(WidgetV2Configuration widgetV2Configuration, zj.e<? super a> eVar) {
            super(2, eVar);
            this.y = widgetV2Configuration;
        }

        public static final vj.e0 D(Integer num, WidgetV2Configuration widgetV2Configuration) {
            Intent putExtra = new Intent().putExtra("appWidgetId", num.intValue());
            jk.p.h(putExtra, "putExtra(...)");
            widgetV2Configuration.setResult(-1, putExtra);
            widgetV2Configuration.finish();
            return vj.e0.a;
        }

        public static final vj.e0 E(StateConfigureWidgetV2 stateConfigureWidgetV2, ik.a aVar, v0.m mVar, int i) {
            if ((i & 3) == 2 && mVar.v()) {
                mVar.C();
            } else {
                if (v0.p.J()) {
                    v0.p.S(781104695, i, -1, "com.joaomgcd.taskerwidgetv2.configuration.WidgetV2Configuration.onCreate.<anonymous>.<anonymous> (WidgetV2Configuration.kt:64)");
                }
                e0.u(stateConfigureWidgetV2, aVar, aVar, mVar, 0);
                if (v0.p.J()) {
                    v0.p.R();
                }
            }
            return vj.e0.a;
        }

        @Override
        public final Object n(n0 n0Var, zj.e<? super vj.e0> eVar) {
            return ((a) m(n0Var, eVar)).t(vj.e0.a);
        }

        @Override
        public final zj.e<vj.e0> m(Object obj, zj.e<?> eVar) {
            return WidgetV2Configuration.this.new a(this.y, eVar);
        }

        @Override
        public final Object t(Object obj) {
            final Integer num;
            Object c = ak.b.c();
            int i = this.w;
            if (i == 0) {
                vj.s.b(obj);
                Integer l2 = b7.l2(WidgetV2Configuration.this.getIntent().getExtras(), "appWidgetId");
                if (l2 == null) {
                    l7.c1("Widget ID not provided", this.y);
                    WidgetV2Configuration.this.finish();
                    return vj.e0.a;
                }
                j0 j0Var = new j0(this.y);
                g4.u k = j0Var.k(l2.intValue());
                WidgetV2.a aVar = WidgetV2.g;
                ComponentActivity componentActivity = this.y;
                this.t = l2;
                this.u = bk.l.a(j0Var);
                this.v = bk.l.a(k);
                this.w = 1;
                Object b = aVar.b(componentActivity, k, this);
                if (b == c) {
                    return c;
                }
                num = l2;
                obj = b;
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                num = (Integer) this.t;
                vj.s.b(obj);
            }
            WidgetV2.State state = (WidgetV2.State) obj;
            final StateConfigureWidgetV2 stateConfigureWidgetV2 = new StateConfigureWidgetV2(state != null ? state.getName() : null, num);
            final WidgetV2Configuration widgetV2Configuration = WidgetV2Configuration.this;
            final ik.a aVar2 = new ik.a() {
                @Override
                public final Object e() {
                    vj.e0 D;
                    D = WidgetV2Configuration.a.D(num, widgetV2Configuration);
                    return D;
                }
            };
            b.e.b(WidgetV2Configuration.this, (v0.r) null, d1.c.c(781104695, true, new ik.p() {
                @Override
                public final Object n(Object obj2, Object obj3) {
                    vj.e0 E;
                    E = WidgetV2Configuration.a.E(StateConfigureWidgetV2.this, aVar2, (v0.m) obj2, ((Integer) obj3).intValue());
                    return E;
                }
            }), 1, (Object) null);
            return vj.e0.a;
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        uk.k.d(androidx.lifecycle.s.a(this), null, null, new a(this, null), 3, null);
    }
}