package com.ifpdos.debugmenu.action;

import android.content.Context;
import android.content.Intent;
import com.ifpdos.debugmenu.action.base.ItemSwitchAction;
import d.i.f.c.b;

/* JADX INFO: loaded from: classes.dex */
public class SystemToolbarEnableAction extends ItemSwitchAction {
    private static final String ACTION_SLIDEBAR_OFF = "action.ist.benq.sidebar_off";
    private static final String ACTION_SLIDEBAR_OFF_NEW = "action.benq.sidebar_off";
    private static final String ACTION_SLIDEBAR_ON = "action.ist.benq.sidebar_on";
    private static final String ACTION_SLIDEBAR_ON_NEW = "action.benq.sidebar_on";
    private static final String KEY_SYSTEMBAR_TOOLBAR_STATUS = "KEY_SYSTEMBAR_TOOLBAR_STATUS";

    public SystemToolbarEnableAction(Context context) {
        super(context);
    }

    @Override // com.ifpdos.debugmenu.action.base.ItemSwitchAction
    public boolean isOn(Context context) {
        return b.b(context, KEY_SYSTEMBAR_TOOLBAR_STATUS, true);
    }

    @Override // com.ifpdos.debugmenu.action.base.ItemSwitchAction
    public void onSwitch(Context context, boolean z) {
        b.g(context, KEY_SYSTEMBAR_TOOLBAR_STATUS, z);
        this.mContext.sendBroadcast(new Intent(z ? ACTION_SLIDEBAR_ON : ACTION_SLIDEBAR_OFF));
        this.mContext.sendBroadcast(new Intent(z ? ACTION_SLIDEBAR_ON_NEW : ACTION_SLIDEBAR_OFF_NEW));
    }
}
