package com.ifpdos.debugmenu.action;

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

/* JADX INFO: loaded from: classes.dex */
public class MTRAutoChannelSwitchAction extends ItemSwitchAction {
    private static final String MTR_AUTO_CHANNEL_SWITCH_KEY = "persist.sys.mtr.auto.switch.channel";
    private static final String TAG = "MTRAutoChannelSwitchAction";

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

    @Override // com.ifpdos.debugmenu.action.base.ItemSwitchAction
    public boolean isOn(Context context) {
        boolean zG = c.g(MTR_AUTO_CHANNEL_SWITCH_KEY, true);
        a.P("get prop persist.sys.mtr.auto.switch.channel: ", zG, TAG);
        return zG;
    }

    @Override // com.ifpdos.debugmenu.action.base.ItemSwitchAction
    public void onSwitch(Context context, boolean z) {
        c.l(MTR_AUTO_CHANNEL_SWITCH_KEY, z ? "true" : "false");
        Log.d(TAG, "set prop persist.sys.mtr.auto.switch.channel: " + z);
    }
}
