package xyz.netfly.ui.log;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.WindowManager;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import ie.l;
import java.util.ArrayList;
import xyz.stream.view.UiUtils;
import xyz.stream.view.ViewRuntime;
import xyz.stream.view.autosize.AutoSize;
import ye.a;
import ye.b;

/* JADX INFO: loaded from: classes3.dex */
public class LocalLogActivity extends Activity {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final /* synthetic */ int f35494f = 0;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f35495a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f35496b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public l f35497c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public b f35498d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final ArrayList f35499e = new ArrayList();

    @Override // android.app.Activity, android.view.Window.Callback
    public final void onAttachedToWindow() {
        super.onAttachedToWindow();
        WindowManager.LayoutParams attributes = getWindow().getAttributes();
        attributes.gravity = 8388659;
        attributes.width = this.f35495a;
        attributes.height = this.f35496b;
        getWindow().setAttributes(attributes);
    }

    @Override // android.app.Activity
    @SuppressLint({"NotifyDataSetChanged"})
    public void onCreate(@Nullable Bundle bundle) {
        ViewRuntime.restoreContentDesignSize();
        ViewRuntime.setCurrentContentActivity(this);
        if (AutoSize.checkInit()) {
            AutoSize.autoConvertDensityOfGlobal(this);
        }
        super.onCreate(bundle);
        requestWindowFeature(1);
        getWindow().setFlags(1024, 1024);
        getWindow().addFlags(128);
        getWindow().getDecorView().setSystemUiVisibility(6);
        DisplayMetrics displayMetrics = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
        this.f35495a = displayMetrics.widthPixels;
        this.f35496b = displayMetrics.heightPixels;
        l lVarInflate = l.inflate(LayoutInflater.from(this), null, false);
        this.f35497c = lVarInflate;
        setContentView(lVarInflate.f27165a);
        this.f35497c.f27167c.setLayoutManager(new LinearLayoutManager());
        b bVar = new b(this.f35499e, this);
        this.f35498d = bVar;
        this.f35497c.f27167c.setAdapter(bVar);
        this.f35497c.f27166b.setOnClickListener(new com.google.android.material.textfield.b(this, 17));
        UiUtils.showProgressDialog(this);
        new Thread(new a(this, 0)).start();
    }

    @Override // android.app.Activity
    public final void onDestroy() {
        super.onDestroy();
    }

    @Override // android.app.Activity
    public final void onResume() {
        super.onResume();
        ViewRuntime.restoreContentDesignSize();
        ViewRuntime.setCurrentContentActivity(this);
        if (AutoSize.checkInit()) {
            AutoSize.autoConvertDensityOfGlobal(this);
        }
    }
}
