public override StartCommandResult OnStartCommand(Intent intent, [GeneratedEnum] StartCommandFlags flags, int startId) { var bundle = intent.Extras; var isLockDeviceAction = bundle.GetBoolean("IsLockDeviceAction"); if (isLockDeviceAction) { Lock = new LockDevice(this); Lock.StartLockDevice(); } else { MenuControlPower = new MenuControlPower(this); MenuControlPower.OpenMenuControl(); } return(StartCommandResult.NotSticky); }
private void InitPowerControl() { Lock = new LockDevice(this); MenuControlPower = new MenuControlPower(this); }