package com.tencent.mm.plugin.appbrand.debugger;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class u$2 implements Runnable {
    final /* synthetic */ u hkS;

    u$2(u uVar) {
        this.hkS = uVar;
    }

    public final void run() {
        AppMethodBeat.i(101917);
        if (u.b(this.hkS) == null) {
            ab.w("MicroMsg.RemoteDebugView", "showDebugView mContentView is null");
            AppMethodBeat.o(101917);
        } else if (u.c(this.hkS)) {
            this.hkS.setVisibility(0);
            if (u.b(this.hkS).indexOfChild(this.hkS) == -1) {
                u.b(this.hkS).addView(this.hkS);
            }
            u.b(this.hkS).bringChildToFront(this.hkS);
            this.hkS.setBackgroundColor(this.hkS.getContext().getResources().getColor(2131690155));
            AppMethodBeat.o(101917);
        } else {
            this.hkS.setBackgroundColor(this.hkS.getContext().getResources().getColor(2131690597));
            AppMethodBeat.o(101917);
        }
    }
}
