package com.ss.android.ugc.aweme.shoutouts;

import X.0HH;
import X.8gF;
import X.C539378l;
import X.C539578n;
import X.Fnq;
import X.HeD;
import X.Ltg;
import X.NtX;
import X.OQh;
import X.Szo;
import android.os.Bundle;
import android.view.View;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;
import com.ss.android.ugc.aweme.internal.ShoutOutServiceImpl;
import com.ss.android.ugc.aweme.out.AVExternalServiceImpl;
import java.util.Arrays;
import java.util.HashMap;
import kotlin.h.b.n;

public final class ShoutOutsEditSuccessActivity extends Ltg {
    public HashMap LIZLLL;

    static {
        Covode.recordClassIndex(114104);
    }

    public final boolean dL_() {
        return true;
    }

    public final View g_(int i) {
        if (this.LIZLLL == null) {
            this.LIZLLL = new HashMap();
        }
        View view = (View) this.LIZLLL.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.LIZLLL.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity, X.Ltg, android.app.Activity] */
    public final void onPause() {
        8gF.LIZJ(this);
        ShoutOutsEditSuccessActivity.super.onPause();
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity, X.Ltg, android.app.Activity] */
    public final void onResume() {
        8gF.LIZIZ(this);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity", "onResume", true);
        ShoutOutsEditSuccessActivity.super.onResume();
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity", "onResume", false);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity, X.1oX, android.app.Activity] */
    public final void onStart() {
        8gF.LIZ(this);
        ShoutOutsEditSuccessActivity.super.onStart();
    }

    public final void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity", "onWindowFocusChanged", true);
        ShoutOutsEditSuccessActivity.super.onWindowFocusChanged(z);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity, X.Ltg, android.app.Activity] */
    public final void onDestroy() {
        8gF.LJ(this);
        ShoutOutsEditSuccessActivity.super.onDestroy();
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [android.app.Activity] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void finish() {
        /*
            r2 = this;
            com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity.super.finish()
            r1 = r2
            r0 = 3
            X.Fnq.LIZIZ(r1, r0)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity.finish():void");
    }

    public final void LIZLLL() {
        Szo LIZ = Szo.LIZIZ.LIZ(this);
        LIZ.LIZ(2131099659);
        LIZ.LIZLLL(2131099659);
        LIZ.LIZ(true);
        LIZ.LIZ.LIZJ();
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity, X.Ltg, android.app.Activity] */
    public final void onStop() {
        8gF.LIZLLL(this);
        ShoutOutsEditSuccessActivity.super.onStop();
        if (EnterTransitionCrashOptimizer.getContext() != null) {
            try {
                getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
            } catch (Throwable unused) {
            }
        }
        try {
            getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
        } catch (Throwable unused2) {
        }
    }

    /* JADX WARNING: type inference failed for: r11v0, types: [com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity, X.Ltg, X.1oX, android.app.Activity] */
    public final void onCreate(Bundle bundle) {
        8gF.LIZ(this, bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity", "onCreate", true);
        ShoutOutsEditSuccessActivity.super.onCreate(bundle);
        boolean booleanExtra = getIntent().getBooleanExtra("shoutout_edit_price", false);
        boolean booleanExtra2 = getIntent().getBooleanExtra("shoutout_hide_button", false);
        ShoutOutServiceImpl.LIZLLL().LIZ("shoutouts_edit_post_success_time_" + NtX.LJIJ.LIZJ(), System.currentTimeMillis());
        String string = getString(2131826283);
        String str = "";
        n.LIZIZ(string, str);
        String string2 = getString(2131826282);
        n.LIZIZ(string2, str);
        String LIZ = 0HH.LIZ(string2, Arrays.copyOf(new Object[]{AVExternalServiceImpl.LIZ().shoutOutsService().getShoutOutSettingsModel().LIZ()}, 1));
        n.LIZIZ(LIZ, str);
        if (booleanExtra) {
            string = getString(2131832727);
            n.LIZIZ(string, str);
        } else {
            str = LIZ;
        }
        setContentView(2131558482);
        Fnq.LIZ(this, 3);
        OQh oQh = new OQh();
        oQh.LIZ(0, 2131233921);
        oQh.LIZ(string);
        oQh.LIZ(str);
        oQh.LIZIZ((int) HeD.LIZIZ(this, 72.0f), (int) HeD.LIZIZ(this, 72.0f));
        if (!booleanExtra2) {
            oQh.LJIIIZ = new C539378l(this);
        }
        findViewById(2131370625).setStatus(oQh);
        findViewById(2131363384).setOnClickListener(new C539578n(this));
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.shoutouts.ShoutOutsEditSuccessActivity", "onCreate", false);
    }
}
