package com.ifpdos.debugmenu.action;

import android.content.Context;
import com.ifpdos.debugmenu.R;
import com.ifpdos.debugmenu.action.base.ItemInfoAction;
import com.ifpdos.debugmenu.event.ViewEvent;
import d.f.a.i2.a;
import d.f.a.j2.e.f;
import d.f.a.r2.u2;
import k.c.a.c;
import k.c.a.j;
import org.greenrobot.eventbus.ThreadMode;

/* JADX INFO: loaded from: classes.dex */
public class ShowAutoCheckingAction extends ItemInfoAction {
    public ShowAutoCheckingAction(Context context) {
        super(context);
        a.a().f2585b.add(this);
        c.c().k(this);
    }

    @Override // com.ifpdos.debugmenu.action.base.ItemInfoAction
    public String getValue(Context context) {
        if (u2.r("software_information") == null) {
            setColor(this.mContext.getColor(R.color.white));
            return this.mContext.getString(R.string.str_factory_not_found_standard_info_file);
        }
        setColor(this.mContext.getColor(R.color.orange));
        return this.mContext.getString(R.string.str_factory_auto_checking_finish);
    }

    /* JADX WARN: Multi-variable type inference failed */
    @j(threadMode = ThreadMode.MAIN)
    public void onEvent(ViewEvent.UpdateViewChoiceText updateViewChoiceText) {
        f fVar = (f) this.mViewModel;
        fVar.f2613g.i(updateViewChoiceText.choiceText);
        f fVar2 = (f) this.mViewModel;
        fVar2.f2615i.i(Integer.valueOf(this.mContext.getColor(R.color.orange)));
    }

    /* JADX WARN: Multi-variable type inference failed */
    @j(threadMode = ThreadMode.MAIN)
    public void onEvent(ViewEvent.TextAndColor textAndColor) {
        f fVar = (f) this.mViewModel;
        fVar.f2613g.i(textAndColor.getText());
        f fVar2 = (f) this.mViewModel;
        fVar2.f2615i.i(Integer.valueOf(textAndColor.getColor()));
    }
}
