导航菜单

页面标题

页面副标题

Housing v14.7.8 - AutoStart.java 源代码

正在查看: Housing v14.7.8 应用的 AutoStart.java JAVA 源代码文件

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


package com.contentsquare.android.internal.features.initialize;

import android.app.Application;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.u;
import com.facebook.share.internal.ShareConstants;
import f7.a4;
import f7.d4;
import f7.j4;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import kotlin.jvm.internal.s;
import org.jetbrains.annotations.NotNull;
import t5.g;
import zp.m;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0016\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/contentsquare/android/internal/features/initialize/AutoStart;", "Landroid/content/ContentProvider;", "<init>", "()V", "library_release"}, k = 1, mv = {1, 8, 0})
public class AutoStart extends ContentProvider {

    @NotNull
    public final Lazy a = m.a(new a());

    @NotNull
    public final b b = new b();

    public static final class a extends s implements kq.a<j4> {
        public a() {
            super(0);
        }

        public final Object invoke() {
            Context context = AutoStart.this.getContext();
            if (context == null) {
                return null;
            }
            return new j4(context);
        }
    }

    @Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"com/contentsquare/android/internal/features/initialize/AutoStart$b", "Landroidx/lifecycle/DefaultLifecycleObserver;", "library_release"}, k = 1, mv = {1, 8, 0})
    public static final class b implements DefaultLifecycleObserver {
        public b() {
        }

        public final void onCreate(androidx.lifecycle.s sVar) {
            r.k(sVar, "owner");
            Context context = AutoStart.this.getContext();
            if (context == null || !a4.a(context)) {
                return;
            }
            g.e(context);
        }
    }

    @Override
    public final int delete(Uri uri, String str, String[] strArr) {
        r.k(uri, ShareConstants.MEDIA_URI);
        return 0;
    }

    @Override
    public final String getType(Uri uri) {
        r.k(uri, ShareConstants.MEDIA_URI);
        return null;
    }

    @Override
    public final Uri insert(Uri uri, ContentValues contentValues) {
        r.k(uri, ShareConstants.MEDIA_URI);
        return null;
    }

    @Override
    public final boolean onCreate() {
        j4 j4Var = (j4) this.a.getValue();
        if (j4Var != null) {
            u uVar = j4Var.b;
            if (uVar == null) {
                r.o("registry");
                throw null;
            }
            uVar.a(this.b);
        }
        Context context = getContext();
        if (context == null || d4.b != null) {
            return true;
        }
        Context applicationContext = context.getApplicationContext();
        r.i(applicationContext, "null cannot be cast to non-null type android.app.Application");
        d4.b = new d4((Application) applicationContext);
        return true;
    }

    @Override
    public final Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
        r.k(uri, ShareConstants.MEDIA_URI);
        return null;
    }

    @Override
    public final int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
        r.k(uri, ShareConstants.MEDIA_URI);
        return 0;
    }
}