导航菜单

页面标题

页面副标题

Tasker v6.5.11 - ActivityWidgetV2LayoutConfiguration.java 源代码

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

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


package com.joaomgcd.taskerwidgetv2.configuration.layout;

import android.content.Intent;
import android.os.Bundle;
import androidx.lifecycle.t;
import com.joaomgcd.taskerm.util.x2;
import com.joaomgcd.taskerwidgetv2.layouts.custom.CustomStructureBaseList;
import java.util.List;
import jk.n0;
import kotlin.collections.r;
import lj.e0;
import lj.s;
import qj.l;
import v0.n;
import xj.p;
import yj.q;

public final class ActivityWidgetV2LayoutConfiguration extends Hilt_ActivityWidgetV2LayoutConfiguration {
    public static final a M = new a(null);

    public static final class a {
        public a(yj.h hVar) {
            this();
        }

        private a() {
        }
    }

    @qj.f(c = "com.joaomgcd.taskerwidgetv2.configuration.layout.ActivityWidgetV2LayoutConfiguration$onCreate$1", f = "ActivityWidgetV2LayoutConfiguration.kt", l = {}, m = "invokeSuspend")
    static final class b extends l implements p<n0, oj.d<? super e0>, Object> {
        int t;

        static final class a extends q implements p<n, Integer, e0> {
            final StateConfigureWidgetLayoutV2 i;
            final xj.l<String, e0> q;
            final xj.a<e0> r;

            a(StateConfigureWidgetLayoutV2 stateConfigureWidgetLayoutV2, xj.l<? super String, e0> lVar, xj.a<e0> aVar) {
                super(2);
                this.i = stateConfigureWidgetLayoutV2;
                this.q = lVar;
                this.r = aVar;
            }

            public final void a(n nVar, int i) {
                if ((i & 11) == 2 && nVar.w()) {
                    nVar.C();
                    return;
                }
                if (v0.q.J()) {
                    v0.q.S(-508807719, i, -1, "com.joaomgcd.taskerwidgetv2.configuration.layout.ActivityWidgetV2LayoutConfiguration.onCreate.<anonymous>.<anonymous> (ActivityWidgetV2LayoutConfiguration.kt:123)");
                }
                com.joaomgcd.taskerwidgetv2.configuration.layout.a.f(this.i, this.q, this.r, nVar, 0);
                if (v0.q.J()) {
                    v0.q.R();
                }
            }

            @Override
            public e0 l(n nVar, Integer num) {
                a(nVar, num.intValue());
                return e0.a;
            }
        }

        static final class C0080b extends q implements xj.a<CustomStructureBaseList> {
            final String i;

            C0080b(String str) {
                super(0);
                this.i = str;
            }

            @Override
            public final CustomStructureBaseList invoke() {
                CustomStructureBaseList.a aVar = CustomStructureBaseList.Companion;
                String str = this.i;
                if (str == null) {
                    str = "{}";
                }
                return aVar.c(str);
            }
        }

        static final class c extends q implements xj.a<e0> {
            final ActivityWidgetV2LayoutConfiguration i;

            c(ActivityWidgetV2LayoutConfiguration activityWidgetV2LayoutConfiguration) {
                super(0);
                this.i = activityWidgetV2LayoutConfiguration;
            }

            public final void a() {
                this.i.setResult(0);
                this.i.finish();
            }

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

        static final class d extends q implements xj.l<String, e0> {
            final ActivityWidgetV2LayoutConfiguration i;

            d(ActivityWidgetV2LayoutConfiguration activityWidgetV2LayoutConfiguration) {
                super(1);
                this.i = activityWidgetV2LayoutConfiguration;
            }

            @Override
            public e0 invoke(String str) {
                invoke2(str);
                return e0.a;
            }

            public final void invoke2(String str) {
                yj.p.i(str, "jsonResult");
                Intent intent = new Intent();
                intent.putExtra("EXTRA_WIDGET_JSON", str);
                this.i.setResult(-1, intent);
                this.i.finish();
            }
        }

        b(oj.d<? super b> dVar) {
            super(2, dVar);
        }

        @Override
        public final oj.d<e0> k(Object obj, oj.d<?> dVar) {
            return ActivityWidgetV2LayoutConfiguration.this.new b(dVar);
        }

        @Override
        public final Object r(Object obj) {
            List a0;
            pj.b.c();
            if (this.t != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s.b(obj);
            Bundle extras = ActivityWidgetV2LayoutConfiguration.this.getIntent().getExtras();
            String string = extras != null ? extras.getString("EXTRA_WIDGET_JSON") : null;
            CustomStructureBaseList customStructureBaseList = new CustomStructureBaseList();
            CustomStructureBaseList customStructureBaseList2 = (CustomStructureBaseList) x2.U4(null, new C0080b(string), 1, null);
            if (customStructureBaseList2 != null && (a0 = r.a0(customStructureBaseList2)) != null) {
                customStructureBaseList.addAll(a0);
            }
            if (customStructureBaseList.isEmpty()) {
                customStructureBaseList = CustomStructureBaseList.Companion.b(ActivityWidgetV2LayoutConfiguration.this);
            }
            b.e.b(ActivityWidgetV2LayoutConfiguration.this, (v0.s) null, d1.c.c(-508807719, true, new a(new StateConfigureWidgetLayoutV2(customStructureBaseList, false, false, false, false, null, null, null, null, null, null, null, null, null, null, null, null, null, 262142, null), new d(ActivityWidgetV2LayoutConfiguration.this), new c(ActivityWidgetV2LayoutConfiguration.this))), 1, (Object) null);
            return e0.a;
        }

        @Override
        public final Object l(n0 n0Var, oj.d<? super e0> dVar) {
            return ((b) k(n0Var, dVar)).r(e0.a);
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        jk.k.d(t.a(this), null, null, new b(null), 3, null);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}