package com.tencent.mm.plugin.story.ui;

import a.f.b.j;
import a.l;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;
import android.content.res.Configuration;
import android.graphics.Point;
import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.compatible.e.q;
import com.tencent.mm.kernel.e;
import com.tencent.mm.kernel.g;
import com.tencent.mm.media.proxy.MediaEditorProxy;
import com.tencent.mm.media.widget.camerarecordview.b;
import com.tencent.mm.plugin.mmsight.model.CaptureMMProxy;
import com.tencent.mm.plugin.story.f.c;
import com.tencent.mm.plugin.story.g.h;
import com.tencent.mm.plugin.story.model.i;
import com.tencent.mm.plugin.story.proxy.StoryAudioManagerProxy;
import com.tencent.mm.plugin.story.proxy.StoryCaptureProxy;
import com.tencent.mm.plugin.story.ui.view.CaptureView;
import com.tencent.mm.plugin.story.ui.view.editor.EditorView;
import com.tencent.mm.remoteservice.d;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.at;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.base.a;

@a(3)
@l(dWo = {1, 1, 13}, dWp = {"\u0000t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\b\u0003\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0015\n\u0002\b\u0005*\u0002\u0012\u0015\b\u0007\u0018\u0000 22\u00020\u0001:\u000223B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0017\u001a\u00020\u0018H\u0002J\b\u0010\u0019\u001a\u00020\u0010H\u0014J\b\u0010\u001a\u001a\u00020\u0010H\u0014J\b\u0010\u001b\u001a\u00020\u0018H\u0002J\"\u0010\u001c\u001a\u00020\u00182\u0006\u0010\u001d\u001a\u00020\u00102\u0006\u0010\u001e\u001a\u00020\u00102\b\u0010\u001f\u001a\u0004\u0018\u00010 H\u0014J\b\u0010!\u001a\u00020\u0018H\u0016J\u0010\u0010\"\u001a\u00020\u00182\u0006\u0010#\u001a\u00020$H\u0016J\u0012\u0010%\u001a\u00020\u00182\b\u0010&\u001a\u0004\u0018\u00010'H\u0016J\b\u0010(\u001a\u00020\u0018H\u0014J\b\u0010)\u001a\u00020\u0018H\u0014J+\u0010*\u001a\u00020\u00182\u0006\u0010\u001d\u001a\u00020\u00102\f\u0010+\u001a\b\u0012\u0004\u0012\u00020-0,2\u0006\u0010.\u001a\u00020/H\u0016¢\u0006\u0002\u00100J\b\u00101\u001a\u00020\u0018H\u0014R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0007\u001a\u0004\u0018\u00010\bX\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u000b\u001a\u0004\u0018\u00010\fX\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u000eX\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u0010X\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0011\u001a\u00020\u0012X\u0004¢\u0006\u0004\n\u0002\u0010\u0013R\u0010\u0010\u0014\u001a\u00020\u0015X\u0004¢\u0006\u0004\n\u0002\u0010\u0016¨\u00064"}, dWq = {"Lcom/tencent/mm/plugin/story/ui/StoryCaptureUI;", "Lcom/tencent/mm/ui/MMActivity;", "()V", "captureView", "Lcom/tencent/mm/plugin/story/ui/view/CaptureView;", "editorPresenter", "Lcom/tencent/mm/plugin/story/presenter/EditorPresenter;", "editorView", "Lcom/tencent/mm/plugin/story/ui/view/editor/EditorView;", "isInit", "", "screenDp", "Landroid/graphics/Point;", "serverProxy", "Lcom/tencent/mm/remoteservice/RemoteServiceProxy;", "status", "", "uiNavigation", "com/tencent/mm/plugin/story/ui/StoryCaptureUI$uiNavigation$1", "Lcom/tencent/mm/plugin/story/ui/StoryCaptureUI$uiNavigation$1;", "voipCallingListener", "com/tencent/mm/plugin/story/ui/StoryCaptureUI$voipCallingListener$1", "Lcom/tencent/mm/plugin/story/ui/StoryCaptureUI$voipCallingListener$1;", "doReport", "", "getForceOrientation", "getLayoutId", "initCreate", "onActivityResult", "requestCode", "resultCode", "data", "Landroid/content/Intent;", "onBackPressed", "onConfigurationChanged", "newConfig", "Landroid/content/res/Configuration;", "onCreate", "savedInstanceState", "Landroid/os/Bundle;", "onDestroy", "onPause", "onRequestPermissionsResult", "permissions", "", "", "grantResults", "", "(I[Ljava/lang/String;[I)V", "onResume", "Companion", "UINavigation", "plugin-story_release"})
public final class StoryCaptureUI extends MMActivity {
    public static final a seG = new a((byte) 0);
    private boolean bZi;
    private final d ext = new d((Context) this);
    private Point oCX;
    private CaptureView seB;
    private EditorView seC;
    private c seD;
    private final f seE = new f(this);
    private final g seF = new g(this);
    private int status = -1;

    static {
        AppMethodBeat.i(110021);
        AppMethodBeat.o(110021);
    }

    public void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        AppMethodBeat.at(this, z);
    }

    public StoryCaptureUI() {
        AppMethodBeat.i(110020);
        AppMethodBeat.o(110020);
    }

    public final void onCreate(Bundle bundle) {
        AppMethodBeat.i(110012);
        supportRequestWindowFeature(1);
        super.onCreate(bundle);
        StoryCaptureProxy.a aVar = StoryCaptureProxy.saw;
        StoryCaptureProxy.a.createInstance(this.ext);
        StoryAudioManagerProxy.a aVar2 = StoryAudioManagerProxy.sas;
        StoryAudioManagerProxy.a.createInstance(this.ext);
        CaptureMMProxy.createProxy(new CaptureMMProxy(this.ext));
        MediaEditorProxy.a aVar3 = MediaEditorProxy.eWZ;
        MediaEditorProxy.a.createInstance(this.ext);
        this.ext.connect((Runnable) new c(this));
        this.seB = (CaptureView) findViewById(2131828043);
        CaptureView captureView = this.seB;
        if (captureView != null) {
            captureView.setUiNavigation((b) this.seE);
        }
        this.seC = (EditorView) findViewById(2131828044);
        Ne(8);
        getWindow().addFlags(2097280);
        getWindow().setFlags(201327616, 201327616);
        com.tencent.mm.plugin.mmsight.d.iV(true);
        com.tencent.mm.sdk.b.a.xxA.c((com.tencent.mm.sdk.b.c) this.seF);
        h hVar = h.scu;
        h.cAo();
        hVar = h.scu;
        h.cAp();
        int intExtra = getIntent().getIntExtra("jump_page_from", -1);
        long longExtra = getIntent().getLongExtra("video_object_id", 0);
        long currentTimeMillis = System.currentTimeMillis();
        hVar = h.scu;
        h.cAm().aX((long) at.gC((Context) dxU()));
        hVar = h.scu;
        h.cAm().fm(String.valueOf(currentTimeMillis));
        hVar = h.scu;
        h.cAm().aY((long) intExtra);
        hVar = h.scu;
        h.cAm().aZ(currentTimeMillis);
        hVar = h.scu;
        h.cAm().bi(longExtra);
        hVar = h.scu;
        h.cAq().bV((long) at.gC((Context) dxU()));
        hVar = h.scu;
        com.tencent.mm.g.b.a.at cAq = h.cAq();
        StringBuilder stringBuilder = new StringBuilder();
        e RP = g.RP();
        j.o(RP, "MMKernel.storage()");
        cAq.fD(stringBuilder.append(RP.Ry().get(2).toString()).append(currentTimeMillis).toString());
        hVar = h.scu;
        h.cAq().bW((long) intExtra);
        hVar = h.scu;
        h.cAq().bX(currentTimeMillis);
        hVar = h.scu;
        h.cAq().cc(longExtra);
        com.tencent.mm.plugin.story.g.d dVar = com.tencent.mm.plugin.story.g.d.sbR;
        com.tencent.mm.plugin.story.g.d.czX();
        this.bZi = true;
        com.tencent.mm.cj.c.aNX();
        AppMethodBeat.o(110012);
    }

    public final int getLayoutId() {
        return 2130970863;
    }

    public final void onResume() {
        AppMethodBeat.i(110013);
        ab.i("MicroMsg.StoryCaptureUI", "onResume, status:" + this.status);
        super.onResume();
        Ne(8);
        if (this.status == 0) {
            CaptureView captureView = this.seB;
            if (captureView != null) {
                com.tencent.mm.media.widget.camerarecordview.a.a(captureView.lmr);
                AppMethodBeat.o(110013);
                return;
            }
            AppMethodBeat.o(110013);
            return;
        }
        if (this.status == 1) {
            c cVar = this.seD;
            if (cVar != null) {
                cVar.resume();
                AppMethodBeat.o(110013);
                return;
            }
        }
        AppMethodBeat.o(110013);
    }

    public final void onPause() {
        AppMethodBeat.i(110014);
        ab.i("MicroMsg.StoryCaptureUI", "onPause, status:" + this.status);
        h hVar = h.scu;
        h.EU(15);
        super.onPause();
        if (this.status == 0) {
            CaptureView captureView = this.seB;
            if (captureView != null) {
                captureView.lmr.stopPreview();
                AppMethodBeat.o(110014);
                return;
            }
            AppMethodBeat.o(110014);
            return;
        }
        if (this.status == 1) {
            c cVar = this.seD;
            if (cVar != null) {
                cVar.pause();
                AppMethodBeat.o(110014);
                return;
            }
        }
        AppMethodBeat.o(110014);
    }

    /* JADX WARNING: Removed duplicated region for block: B:37:0x01db  */
    public final void onActivityResult(int r13, int r14, android.content.Intent r15) {
        /*
        r12 = this;
        r10 = 0;
        r9 = -1;
        r4 = -1;
        r2 = 0;
        r8 = 0;
        r0 = 110015; // 0x1adbf float:1.54164E-40 double:5.43546E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r0);
        super.onActivityResult(r13, r14, r15);
        r0 = "MicroMsg.StoryCaptureUI";
        r1 = new java.lang.StringBuilder;
        r3 = "onActivityResult, requestCode:";
        r1.<init>(r3);
        r1 = r1.append(r13);
        r3 = ", resultCode:";
        r1 = r1.append(r3);
        r1 = r1.append(r14);
        r3 = ", data:";
        r1 = r1.append(r3);
        r1 = r1.append(r15);
        r1 = r1.toString();
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);
        r1 = r12.seC;
        if (r1 == 0) goto L_0x0161;
    L_0x0040:
        r0 = 1003; // 0x3eb float:1.406E-42 double:4.955E-321;
        if (r13 != r0) goto L_0x0161;
    L_0x0044:
        if (r14 != r9) goto L_0x0161;
    L_0x0046:
        if (r15 == 0) goto L_0x0110;
    L_0x0048:
        r0 = r1.smk;
        r3 = "get_poi_name";
        r3 = r15.getStringExtra(r3);
        r6 = "";
        r3 = com.tencent.mm.sdk.platformtools.bo.bc(r3, r6);
        r0.eUu = r3;
        r0 = r1.smk;
        r3 = "get_city";
        r3 = r15.getStringExtra(r3);
        r6 = "";
        r3 = com.tencent.mm.sdk.platformtools.bo.bc(r3, r6);
        r0.guP = r3;
        r0 = r1.smk;
        r3 = "get_lat";
        r6 = -998637568; // 0xffffffffc47a0000 float:-1000.0 double:NaN;
        r3 = r15.getFloatExtra(r3, r6);
        r0.vRq = r3;
        r0 = r1.smk;
        r3 = "get_lng";
        r6 = -998637568; // 0xffffffffc47a0000 float:-1000.0 double:NaN;
        r3 = r15.getFloatExtra(r3, r6);
        r0.vRp = r3;
        r0 = r1.smk;
        r3 = "get_poi_classify_id";
        r3 = r15.getStringExtra(r3);
        r0.wCC = r3;
        r0 = com.tencent.mm.plugin.story.model.audio.b.rUx;
        r0 = r1.smk;
        r0 = r0.vRp;
        r3 = r1.smk;
        r3 = r3.vRq;
        r6 = 1232348160; // 0x49742400 float:1000000.0 double:6.088608896E-315;
        r0 = r0 * r6;
        r6 = (long) r0;
        com.tencent.mm.plugin.story.model.audio.b.la(r6);
        r0 = 1232348160; // 0x49742400 float:1000000.0 double:6.088608896E-315;
        r0 = r0 * r3;
        r6 = (long) r0;
        com.tencent.mm.plugin.story.model.audio.b.lb(r6);
        r0 = r1.TAG;
        r3 = new java.lang.StringBuilder;
        r6 = "onActivityResult check cur lat ";
        r3.<init>(r6);
        r6 = r1.smk;
        r6 = r6.vRq;
        r3 = r3.append(r6);
        r6 = 32;
        r3 = r3.append(r6);
        r6 = r1.smk;
        r6 = r6.vRp;
        r3 = r3.append(r6);
        r6 = " poiname ";
        r3 = r3.append(r6);
        r6 = r1.smk;
        r6 = r6.eUu;
        r3 = r3.append(r6);
        r6 = " City ";
        r3 = r3.append(r6);
        r6 = r1.smk;
        r6 = r6.guP;
        r3 = r3.append(r6);
        r3 = r3.toString();
        com.tencent.mm.sdk.platformtools.ab.i(r0, r3);
        r0 = r1.smc;
        r0 = r0.cCB();
        if (r0 == 0) goto L_0x020c;
    L_0x00f8:
        r3 = r1.smc;
        r6 = r1.smk;
        r0 = "sl";
        a.f.b.j.p(r6, r0);
        r0 = r3.smR;
        if (r0 == 0) goto L_0x0110;
    L_0x0106:
        r0 = new com.tencent.mm.plugin.story.ui.view.editor.item.EditorItemContainer$f;
        r0.<init>(r3, r6);
        r0 = (a.f.a.a) r0;
        r3.f(r0);
    L_0x0110:
        r0 = new com.tencent.mm.plugin.story.ui.view.editor.EditorView$b;
        r0.<init>(r1);
        r1.smt = r0;
        r1 = r1.smt;
        if (r1 == 0) goto L_0x0161;
    L_0x011b:
        if (r15 == 0) goto L_0x0161;
    L_0x011d:
        r0 = "report_index";
        r0 = r15.getIntExtra(r0, r9);
        r1.index = r0;
        r0 = "first_start_time";
        r6 = r15.getLongExtra(r0, r10);
        r1.oRM = r6;
        r0 = "lastSuccStamp";
        r6 = r15.getLongExtra(r0, r10);
        r1.oRN = r6;
        r0 = "firstSuccStamp";
        r6 = r15.getLongExtra(r0, r10);
        r1.oRO = r6;
        r0 = "reqLoadCnt";
        r0 = r15.getIntExtra(r0, r8);
        r1.oRP = r0;
        r0 = "entry_time";
        r0 = r15.getIntExtra(r0, r8);
        r1.nPQ = r0;
        r0 = "search_id";
        r0 = r15.getStringExtra(r0);
        if (r0 != 0) goto L_0x015f;
    L_0x015c:
        r0 = "";
    L_0x015f:
        r1.hlm = r0;
    L_0x0161:
        r0 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;
        if (r13 != r0) goto L_0x0205;
    L_0x0165:
        if (r14 != r9) goto L_0x0205;
    L_0x0167:
        if (r15 == 0) goto L_0x0215;
    L_0x0169:
        r0 = "K_SEGMENTVIDEOPATH";
        r3 = r15.getStringExtra(r0);
    L_0x0170:
        if (r15 == 0) goto L_0x0218;
    L_0x0172:
        r0 = "key_seek_look_start_time";
        r0 = r15.getLongExtra(r0, r4);
        r0 = java.lang.Long.valueOf(r0);
        r6 = r0;
    L_0x017e:
        if (r15 == 0) goto L_0x021b;
    L_0x0180:
        r0 = "key_seek_end_time";
        r0 = r15.getLongExtra(r0, r4);
        r0 = java.lang.Long.valueOf(r0);
        r1 = r0;
    L_0x018c:
        r0 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r3);
        if (r0 == 0) goto L_0x0220;
    L_0x0192:
        if (r15 == 0) goto L_0x019b;
    L_0x0194:
        r0 = "key_select_video_list";
        r2 = r15.getStringArrayListExtra(r0);
    L_0x019b:
        if (r2 == 0) goto L_0x0220;
    L_0x019d:
        r0 = r2.size();
        if (r0 <= 0) goto L_0x0220;
    L_0x01a3:
        r0 = r2.get(r8);
        r0 = (java.lang.String) r0;
    L_0x01a9:
        r2 = "MicroMsg.StoryCaptureUI";
        r3 = new java.lang.StringBuilder;
        r7 = "select from album finish, videoPath:";
        r3.<init>(r7);
        r3 = r3.append(r0);
        r7 = ", startTime:";
        r3 = r3.append(r7);
        r3 = r3.append(r6);
        r7 = ", endTime:";
        r3 = r3.append(r7);
        r3 = r3.append(r1);
        r3 = r3.toString();
        com.tencent.mm.sdk.platformtools.ab.i(r2, r3);
        r2 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r0);
        if (r2 != 0) goto L_0x0205;
    L_0x01db:
        r7 = new com.tencent.mm.plugin.story.e.a;
        r7.<init>();
        if (r0 != 0) goto L_0x01e5;
    L_0x01e2:
        a.f.b.j.dWJ();
    L_0x01e5:
        r7.aad(r0);
        if (r6 == 0) goto L_0x021e;
    L_0x01ea:
        r2 = r6.longValue();
    L_0x01ee:
        r7.rRG = r2;
        if (r1 == 0) goto L_0x01f6;
    L_0x01f2:
        r4 = r1.longValue();
    L_0x01f6:
        r7.rRH = r4;
        r7.fbV = r8;
        r0 = com.tencent.mm.plugin.sight.base.SightVideoJNI.getMp4Rotate(r0);
        r7.eXL = r0;
        r0 = r12.seE;
        r0.b(r7);
    L_0x0205:
        r0 = 110015; // 0x1adbf float:1.54164E-40 double:5.43546E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        return;
    L_0x020c:
        r0 = r1.smc;
        r3 = r1.smk;
        r0.b(r3);
        goto L_0x0110;
    L_0x0215:
        r3 = r2;
        goto L_0x0170;
    L_0x0218:
        r6 = r2;
        goto L_0x017e;
    L_0x021b:
        r1 = r2;
        goto L_0x018c;
    L_0x021e:
        r2 = r4;
        goto L_0x01ee;
    L_0x0220:
        r0 = r3;
        goto L_0x01a9;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.story.ui.StoryCaptureUI.onActivityResult(int, int, android.content.Intent):void");
    }

    public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
        AppMethodBeat.i(110016);
        j.p(strArr, "permissions");
        j.p(iArr, "grantResults");
        Object[] objArr;
        Thread currentThread;
        if (iArr.length <= 0) {
            objArr = new Object[2];
            objArr[0] = Integer.valueOf(i);
            currentThread = Thread.currentThread();
            j.o(currentThread, "Thread.currentThread()");
            objArr[1] = Long.valueOf(currentThread.getId());
            ab.i("MicroMsg.StoryCaptureUI", "onRequestPermissionsResult grantResults length 0. requestCode[%d], tid[%d]", objArr);
            AppMethodBeat.o(110016);
            return;
        }
        objArr = new Object[3];
        objArr[0] = Integer.valueOf(i);
        objArr[1] = Integer.valueOf(iArr[0]);
        currentThread = Thread.currentThread();
        j.o(currentThread, "Thread.currentThread()");
        objArr[2] = Long.valueOf(currentThread.getId());
        ab.i("MicroMsg.StoryCaptureUI", "onRequestPermissionsResult requestCode[%d],grantResults[%d] tid[%d]", objArr);
        switch (i) {
            case 64:
                if (iArr[0] != 0) {
                    com.tencent.mm.ui.base.h.a((Context) this, getString(2131301926), getString(2131301936), getString(2131300878), getString(2131296868), false, (OnClickListener) new d(this), (OnClickListener) e.seI);
                    break;
                }
                break;
        }
        AppMethodBeat.o(110016);
    }

    public final void onConfigurationChanged(Configuration configuration) {
        AppMethodBeat.i(110017);
        j.p(configuration, "newConfig");
        super.onConfigurationChanged(configuration);
        if (this.bZi && com.tencent.mm.compatible.util.d.iW(13)) {
            Point point = new Point(configuration.screenWidthDp, configuration.screenHeightDp);
            if (this.oCX == null || (j.j(this.oCX, point) ^ 1) != 0) {
                this.oCX = point;
            }
        }
        AppMethodBeat.o(110017);
    }

    public final void onBackPressed() {
        AppMethodBeat.i(110018);
        CaptureView captureView = this.seB;
        if (captureView != null) {
            Object obj;
            if (captureView.sih != null) {
                captureView.cCl();
                obj = 1;
            } else {
                obj = null;
            }
            if (obj == 1) {
                AppMethodBeat.o(110018);
                return;
            }
        }
        h hVar = h.scu;
        h.EU(14);
        c cVar = this.seD;
        if (cVar != null) {
            if (!cVar.Ab()) {
                this.seE.exit();
                hVar = h.scu;
                h.cAo();
                hVar = h.scu;
                h.cAr();
            }
            AppMethodBeat.o(110018);
            return;
        }
        AppMethodBeat.o(110018);
    }

    public final void onDestroy() {
        AppMethodBeat.i(110019);
        super.onDestroy();
        this.ext.release();
        CaptureView captureView = this.seB;
        if (captureView != null) {
            com.tencent.mm.media.widget.camerarecordview.a aVar = captureView.lmr;
            com.tencent.mm.media.widget.camerarecordview.b.a aVar2 = aVar.fbJ;
            aVar2.fbZ.disable();
            aVar2.context = null;
            b bVar = b.fbR;
            b.Wv();
            aVar.fbK.getCameraPreviewView().release();
            com.tencent.mm.media.widget.b.b bVar2 = aVar.fbB;
            if (bVar2 != null) {
                bVar2.cancel();
            }
            com.tencent.mm.media.widget.b.b bVar3 = aVar.fbB;
            if (bVar3 != null) {
                bVar3.clear();
            }
        }
        c cVar = this.seD;
        if (cVar != null) {
            cVar.reset();
            cVar.rYw.destroy();
        }
        com.tencent.mm.sdk.b.a.xxA.d((com.tencent.mm.sdk.b.c) this.seF);
        i.a aVar3 = i.rSv;
        com.tencent.mm.sdk.g.d.post((Runnable) i.a.a.rSw, "Story_cleanAudioFile");
        com.tencent.mm.plugin.story.g.d dVar = com.tencent.mm.plugin.story.g.d.sbR;
        com.tencent.mm.plugin.story.g.d.czY();
        AppMethodBeat.o(110019);
    }

    public final int getForceOrientation() {
        if (q.etc.erC) {
            return 7;
        }
        return 1;
    }

    public static final /* synthetic */ void a(StoryCaptureUI storyCaptureUI) {
        AppMethodBeat.i(110022);
        i.a aVar = i.rSv;
        com.tencent.mm.plugin.story.proxy.d.a aVar2 = com.tencent.mm.plugin.story.proxy.d.sbf;
        com.tencent.mm.plugin.story.proxy.d.czO();
        j.p(com.tencent.mm.plugin.story.proxy.d.getAccPath(), "accPath");
        StringBuilder stringBuilder = new StringBuilder();
        e RP = g.RP();
        j.o(RP, "MMKernel.storage()");
        String stringBuilder2 = stringBuilder.append(RP.getAccPath()).append("story/").toString();
        j.p(stringBuilder2, "<set-?>");
        i.aam(stringBuilder2);
        com.tencent.mm.vfs.e.tf(i.cxJ());
        storyCaptureUI.status = 0;
        EditorView editorView = storyCaptureUI.seC;
        if (editorView != null) {
            c cVar = new c((Context) storyCaptureUI, (b) storyCaptureUI.seE, editorView);
            editorView.setPresenter((com.tencent.mm.plugin.story.d.b.a) cVar);
            storyCaptureUI.seD = cVar;
        }
        CaptureView captureView = storyCaptureUI.seB;
        if (captureView != null) {
            com.tencent.mm.media.widget.camerarecordview.a.a(captureView.lmr);
            AppMethodBeat.o(110022);
            return;
        }
        AppMethodBeat.o(110022);
    }
}
