package com.philliphsu.bottomsheetpickers.view.numberpad;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetDialog;
import android.view.View;

import com.philliphsu.bottomsheetpickers.R;

/**
 * Created by Phillip Hsu on 4/5/2017.
 */

public class BottomSheetNumberPadTimePickerDialog extends BottomSheetDialog
        implements INumberPadTimePicker.View {

    private final NumberPadTimePicker mTimePicker;
    private final View mOkButton;

    private final INumberPadTimePicker.Presenter mPresenter;

    public BottomSheetNumberPadTimePickerDialog(@NonNull Context context) {
        super(context);

        setContentView(R.layout.bsp_bottomsheet_numberpad_time_picker);
        mTimePicker = (NumberPadTimePicker) findViewById(R.id.bsp_numberpad_time_picker);
        mOkButton = findViewById(R.id.bsp_ok_button);
        mOkButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        mPresenter = new NumberPadTimePickerDialogPresenter(this);
        mTimePicker.setOnBackspaceClickListener(new OnBackspaceClickHandler(mPresenter));
        mTimePicker.setOnNumberKeyClickListener(new OnNumberKeyClickListener(mPresenter));
    }

    @Override
    public void setNumberKeysEnabled(int start, int end) {

    }

    @Override
    public void setBackspaceEnabled(boolean enabled) {

    }

    @Override
    public void updateTimeDisplay(CharSequence time) {

    }

    @Override
    public void updateAmPmDisplay(CharSequence ampm) {

    }

    @Override
    public void setOkButtonEnabled(boolean enabled) {
        mOkButton.setEnabled(enabled);
    }

    @Override
    public void setAmPmDisplayVisible(boolean visible) {

    }

    @Override
    public void setAmPmDisplayIndex(int index) {

    }

    @Override
    public void setLeftAltKeyEnabled(boolean enabled) {

    }

    @Override
    public void setRightAltKeyEnabled(boolean enabled) {

    }

    @Override
    public void setHeaderDisplayFocused(boolean focused) {

    }

    @Override
    public void setLeftAltKeyText(CharSequence text) {

    }

    @Override
    public void setRightAltKeyText(CharSequence text) {

    }
}

package com.philliphsu.bottomsheetpickers.view.numberpad;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetDialog;
import android.view.View;

import com.philliphsu.bottomsheetpickers.R;

/**
 * Created by Phillip Hsu on 4/5/2017.
 */

public class BottomSheetNumberPadTimePickerDialog extends BottomSheetDialog {

    private final NumberPadTimePicker mTimePicker;
    private final View mOkButton;

    public BottomSheetNumberPadTimePickerDialog(@NonNull Context context) {
        super(context);

        setContentView(R.layout.bsp_bottomsheet_numberpad_time_picker);
        mTimePicker = (NumberPadTimePicker) findViewById(R.id.bsp_numberpad_time_picker);
        mOkButton = findViewById(R.id.bsp_ok_button);
    }
}

Decommission BottomSheetNumberPadTimePickerDialog.