// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String SEDATION_TIME = "SEDATION_TIME";


import java.util.Locale;
import static org.epstudios.epcoding.Constants.SEDATION_TIME;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TimePicker;
import android.widget.ToggleButton;
        startHour = timePicker.getCurrentHour();
        startMinute = timePicker.getCurrentMinute();
        endHour = startHour;
        endMinute = startMinute;

        updateToggleButtonTitle();

    }

    @Override
    public void onClick(View view) {
        final int id = view.getId();
        if (id == R.id.cancel_button) {
            finish();
        }
        else if (id == R.id.calculate_button) {
            calculate();
        }
        else if (id == R.id.toggleButton) {
            // break;
            // there is no toggle button anymore...
        }
        else if (id == R.id.set_button) {
            setTime();
        }
    }

    private void calculate() {
        int difference = minuteDifference();
        Intent intent = new Intent();
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String SEDATION_TIME = "SEDATION_TIME";


// Path: app/src/main/java/org/epstudios/epcoding/SedationTimeCalculator.java
import java.util.Locale;
import static org.epstudios.epcoding.Constants.SEDATION_TIME;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TimePicker;
import android.widget.ToggleButton;

        startHour = timePicker.getCurrentHour();
        startMinute = timePicker.getCurrentMinute();
        endHour = startHour;
        endMinute = startMinute;

        updateToggleButtonTitle();

    }

    @Override
    public void onClick(View view) {
        final int id = view.getId();
        if (id == R.id.cancel_button) {
            finish();
        }
        else if (id == R.id.calculate_button) {
            calculate();
        }
        else if (id == R.id.toggleButton) {
            // break;
            // there is no toggle button anymore...
        }
        else if (id == R.id.set_button) {
            setTime();
        }
    }

    private void calculate() {
        int difference = minuteDifference();
        Intent intent = new Intent();
        intent.putExtra(SEDATION_TIME, difference);