package com.tencent.mm.plugin.appbrand.jsapi.q;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.g;
import com.tencent.mm.plugin.appbrand.g.c;
import com.tencent.mm.plugin.appbrand.g.d;
import com.tencent.mm.sdk.platformtools.ab;

class j$1 extends c {
    final /* synthetic */ j hXI;
    final /* synthetic */ com.tencent.mm.plugin.appbrand.jsapi.c hxc;

    j$1(j jVar, com.tencent.mm.plugin.appbrand.jsapi.c cVar) {
        this.hXI = jVar;
        this.hxc = cVar;
    }

    public final void onDestroy() {
        AppMethodBeat.i(126419);
        ab.i("MicroMsg.JsApiSetKeepScreenOn", "onDestroy");
        if (j.a(this.hXI)) {
            j.b(this.hXI);
        }
        g.b(this.hxc.getAppId(), this);
        AppMethodBeat.o(126419);
    }

    public final void a(d dVar) {
        AppMethodBeat.i(126420);
        ab.i("MicroMsg.JsApiSetKeepScreenOn", "onPause");
        if (j.a(this.hXI)) {
            j.b(this.hXI);
        }
        AppMethodBeat.o(126420);
    }

    public final void onResume() {
        AppMethodBeat.i(126421);
        ab.i("MicroMsg.JsApiSetKeepScreenOn", "onResume");
        if (j.access$200()) {
            j.c(this.hXI);
        }
        AppMethodBeat.o(126421);
    }
}
