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

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.messenger.foundation.a.a.j.a;
import com.tencent.mm.plugin.messenger.foundation.a.j;
import com.tencent.mm.plugin.setting.b;
import com.tencent.mm.protocal.protobuf.act;
import com.tencent.mm.sdk.platformtools.ab;

class SettingsAboutSystemUI$10 implements OnClickListener {
    final /* synthetic */ SettingsAboutSystemUI qml;
    final /* synthetic */ LinearLayout qmm;

    SettingsAboutSystemUI$10(SettingsAboutSystemUI settingsAboutSystemUI, LinearLayout linearLayout) {
        this.qml = settingsAboutSystemUI;
        this.qmm = linearLayout;
    }

    public final void onClick(View view) {
        int i;
        int i2 = 0;
        AppMethodBeat.i(127121);
        for (i = 0; i < this.qmm.getChildCount(); i++) {
            TextView textView = (TextView) this.qmm.getChildAt(i);
            if (2131823800 != textView.getId()) {
                textView.setCompoundDrawablesWithIntrinsicBounds(2131231852, 0, 0, 0);
            }
        }
        ((TextView) view).setCompoundDrawablesWithIntrinsicBounds(2131231853, 0, 0, 0);
        int intValue = ((Integer) g.RP().Ry().get(7, Integer.valueOf(0))).intValue();
        int intValue2 = ((Integer) view.getTag()).intValue();
        ab.d("MicroMsg.SettingsAboutSystemUI", "settings_silence_update_mode choice: %d", new Object[]{Integer.valueOf(intValue2)});
        if ((intValue2 == 0 ? 1 : 0) == ((intValue & 16777216) == 0 ? 1 : 0)) {
            AppMethodBeat.o(127121);
            return;
        }
        if (intValue2 == 0) {
            i2 = 1;
        }
        if (i2 != 0) {
            i = -16777217 & intValue;
        } else {
            i = intValue | 16777216;
        }
        int i3 = i2 == 0 ? 1 : 2;
        g.RP().Ry().set(7, Integer.valueOf(i));
        act act = new act();
        act.wkw = 35;
        act.pvD = i3;
        ((j) g.K(j.class)).XL().c(new a(23, act));
        b.gkF.BS();
        view.post(new 1(this));
        AppMethodBeat.o(127121);
    }
}
