Automation/app/src/main/java/com/jens/automation2/ActivityManageTriggerCalendar.java

36 lines
1.1 KiB
Java
Raw Normal View History

2023-12-23 13:55:02 +01:00
package com.jens.automation2;
import android.app.Activity;
import android.os.Bundle;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import androidx.annotation.Nullable;
public class ActivityManageTriggerCalendar extends Activity
{
CheckBox chkCalendarEventDirection;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
Miscellaneous.setDisplayLanguage(this);
setContentView(R.layout.activity_manage_trigger_calendar);
chkCalendarEventDirection = (CheckBox) findViewById(R.id.chkCalendarEventDirection);
chkCalendarEventDirection.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener()
{
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked)
{
if(checked)
chkCalendarEventDirection.setText(R.string.eventIsCurrentlyHappening);
else
chkCalendarEventDirection.setText(R.string.eventIsCurrentlyNotHappening);
}
});
}
}