Changed picker header

This commit is contained in:
Phillip Hsu
2016-07-19 23:11:37 -07:00
parent ae83786b3c
commit a8f3fafafa
5 changed files with 37 additions and 59 deletions
@@ -56,6 +56,8 @@ public abstract class BaseTimePickerDialog extends BottomSheetDialogFragment {
// While it is true by default, BottomSheetDialogs override this default height.
// See http://stackoverflow.com/a/35634293/5055032 for an alternative solution involving
// defining a style that overrides the attribute.
// TODO: If the sheet is dragged out of view, then the screen remains darkened until
// a subsequent touch on the screen. Consider doing the alt. soln.?
behavior.setPeekHeight(0);
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
@@ -9,7 +9,6 @@ import android.widget.EditText;
import com.philliphsu.clock2.R;
import butterknife.Bind;
import butterknife.OnClick;
import butterknife.OnTouch;
/**
@@ -143,10 +142,12 @@ public class NumpadTimePickerDialog extends BaseTimePickerDialog
return true;
}
/*
@OnClick(R.id.cancel)
void cancel() {
dismiss();
}
*/
private void updateInputText(String inputText) {
TimeTextUtils.setText(inputText, mInputField);