forked from jens/Automation
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
|
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);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|