// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/INumberPadTimePicker.java
// interface DialogPresenter {
//     boolean onOkButtonClick();
//     void onCancelClick();
//     void setBasePresenter(Presenter presenter);
// }
// 
// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/INumberPadTimePicker.java
// interface DialogView {
//     void cancel();
// }


import android.app.TimePickerDialog.OnTimeSetListener;
import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StyleRes;
import android.support.v7.app.AppCompatDialog;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import com.philliphsu.numberpadtimepicker.INumberPadTimePicker.DialogPresenter;
import com.philliphsu.numberpadtimepicker.INumberPadTimePicker.DialogView;
package com.philliphsu.numberpadtimepicker;



/**
 * Dialog to type in a time.
 */
public class NumberPadTimePickerDialog extends AppCompatDialog implements DialogView {

    private final NumberPadTimePickerDialogThemer mThemer;
    private final boolean mIs24HourMode;

    public NumberPadTimePickerDialog(@NonNull Context context,
            @Nullable OnTimeSetListener listener, boolean is24HourMode) {
        this(context, 0, listener, is24HourMode);
    }

    public NumberPadTimePickerDialog(@NonNull Context context, @StyleRes int themeResId,
            @Nullable OnTimeSetListener listener, boolean is24HourMode) {
        super(context, resolveDialogTheme(context, themeResId));

        final View root = getLayoutInflater().inflate(
                R.layout.nptp_alert_numberpad_time_picker_dialog, null);
        final NumberPadTimePicker timePicker = (NumberPadTimePicker)
                root.findViewById(R.id.nptp_time_picker);
        final NumberPadTimePickerAlertComponent timePickerComponent =
                (NumberPadTimePickerAlertComponent) timePicker.getComponent();
// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/INumberPadTimePicker.java
// interface DialogPresenter {
//     boolean onOkButtonClick();
//     void onCancelClick();
//     void setBasePresenter(Presenter presenter);
// }
// 
// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/INumberPadTimePicker.java
// interface DialogView {
//     void cancel();
// }


// Path: library/src/main/java/com/philliphsu/numberpadtimepicker/NumberPadTimePickerDialog.java
import android.app.TimePickerDialog.OnTimeSetListener;
import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StyleRes;
import android.support.v7.app.AppCompatDialog;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import com.philliphsu.numberpadtimepicker.INumberPadTimePicker.DialogPresenter;
import com.philliphsu.numberpadtimepicker.INumberPadTimePicker.DialogView;

package com.philliphsu.numberpadtimepicker;



/**
 * Dialog to type in a time.
 */
public class NumberPadTimePickerDialog extends AppCompatDialog implements DialogView {

    private final NumberPadTimePickerDialogThemer mThemer;
    private final boolean mIs24HourMode;

    public NumberPadTimePickerDialog(@NonNull Context context,
            @Nullable OnTimeSetListener listener, boolean is24HourMode) {
        this(context, 0, listener, is24HourMode);
    }

    public NumberPadTimePickerDialog(@NonNull Context context, @StyleRes int themeResId,
            @Nullable OnTimeSetListener listener, boolean is24HourMode) {
        super(context, resolveDialogTheme(context, themeResId));

        final View root = getLayoutInflater().inflate(
                R.layout.nptp_alert_numberpad_time_picker_dialog, null);
        final NumberPadTimePicker timePicker = (NumberPadTimePicker)
                root.findViewById(R.id.nptp_time_picker);
        final NumberPadTimePickerAlertComponent timePickerComponent =
                (NumberPadTimePickerAlertComponent) timePicker.getComponent();
        final DialogPresenter presenter = new NumberPadTimePickerDialogPresenter(