package xyz.netfly.mobile.view;

import android.R;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import xyz.stream.view.ViewRuntime;
import xyz.stream.view.autosize.AutoSize;

/* JADX INFO: loaded from: classes3.dex */
public class FeedbackPopActivity extends AppCompatActivity {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public ie.g f35129b;

    @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
    public void onCreate(@Nullable Bundle bundle) {
        ViewRuntime.restoreContentDesignSize();
        ViewRuntime.setCurrentContentActivity(this);
        if (AutoSize.checkInit()) {
            AutoSize.autoConvertDensityOfGlobal(this);
        }
        super.onCreate(bundle);
        TypedValue typedValue = new TypedValue();
        final int i10 = 1;
        com.google.android.material.bottomsheet.o oVar = new com.google.android.material.bottomsheet.o(this, getTheme().resolveAttribute(x8.c.bottomSheetDialogTheme, typedValue, true) ? typedValue.resourceId : x8.l.Theme_Design_Light_BottomSheetDialog);
        oVar.f22330j = true;
        oVar.f22331k = true;
        final int i11 = 0;
        oVar.R = new com.google.android.material.bottomsheet.m(oVar, i11);
        oVar.d().h(1);
        oVar.g();
        oVar.g();
        ie.g gVarInflate = ie.g.inflate(LayoutInflater.from(this), null, false);
        this.f35129b = gVarInflate;
        oVar.setContentView(gVarInflate.f26871a);
        View view = (View) this.f35129b.f26871a.getParent();
        Object obj = g0.d.f26125a;
        view.setBackgroundColor(getColor(R.color.transparent));
        oVar.show();
        oVar.setOnDismissListener(new j(this, i11));
        this.f35129b.f26875e.setText(getString(org.drive_hunter.R.string.feedback));
        this.f35129b.f26874d.setHint(getString(org.drive_hunter.R.string.input_hint));
        this.f35129b.f26873c.setText(getString(org.drive_hunter.R.string.submit));
        this.f35129b.f26872b.setText(getString(org.drive_hunter.R.string.cancel));
        this.f35129b.f26874d.addTextChangedListener(new m(this));
        this.f35129b.f26872b.setOnClickListener(new View.OnClickListener(this) { // from class: xyz.netfly.mobile.view.k

            /* JADX INFO: renamed from: b, reason: collision with root package name */
            public final /* synthetic */ FeedbackPopActivity f35164b;

            {
                this.f35164b = this;
            }

            @Override // android.view.View.OnClickListener
            public final void onClick(View view2) {
                int i12 = i11;
                FeedbackPopActivity feedbackPopActivity = this.f35164b;
                switch (i12) {
                    case 0:
                        int i13 = FeedbackPopActivity.f35128c;
                        feedbackPopActivity.finish();
                        break;
                    default:
                        int i14 = 0;
                        if (!feedbackPopActivity.f35129b.f26874d.getText().toString().isEmpty()) {
                            new Thread(new l(feedbackPopActivity, i14)).start();
                        } else {
                            Toast.makeText(feedbackPopActivity, feedbackPopActivity.getString(org.drive_hunter.R.string.input_hint), 0).show();
                        }
                        break;
                }
            }
        });
        this.f35129b.f26873c.setOnClickListener(new View.OnClickListener(this) { // from class: xyz.netfly.mobile.view.k

            /* JADX INFO: renamed from: b, reason: collision with root package name */
            public final /* synthetic */ FeedbackPopActivity f35164b;

            {
                this.f35164b = this;
            }

            @Override // android.view.View.OnClickListener
            public final void onClick(View view2) {
                int i12 = i10;
                FeedbackPopActivity feedbackPopActivity = this.f35164b;
                switch (i12) {
                    case 0:
                        int i13 = FeedbackPopActivity.f35128c;
                        feedbackPopActivity.finish();
                        break;
                    default:
                        int i14 = 0;
                        if (!feedbackPopActivity.f35129b.f26874d.getText().toString().isEmpty()) {
                            new Thread(new l(feedbackPopActivity, i14)).start();
                        } else {
                            Toast.makeText(feedbackPopActivity, feedbackPopActivity.getString(org.drive_hunter.R.string.input_hint), 0).show();
                        }
                        break;
                }
            }
        });
    }

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