Bind method directly

This commit is contained in:
Phillip Hsu 2016-07-15 19:20:34 -07:00
parent c3b018f59e
commit 69d8812c4a
2 changed files with 4 additions and 6 deletions

View File

@ -132,6 +132,7 @@ public abstract class GridLayoutNumpad extends GridLayout implements View.OnClic
}
// TODO: Why do we need this?
@Deprecated
public void delete(int at) {
if (at - 1 >= 0) {
mInput[at - 1] = UNMODIFIED;
@ -140,10 +141,11 @@ public abstract class GridLayoutNumpad extends GridLayout implements View.OnClic
}
}
public final void clear() {
public final boolean clear() {
Arrays.fill(mInput, UNMODIFIED);
mCount = 0;
onDigitsCleared();
return true;
}
/**

View File

@ -226,11 +226,7 @@ public class NumpadTimePicker extends GridLayoutNumpad implements TimePicker {
}
@OnClick({ R.id.leftAlt, R.id.rightAlt })
void onClick(Button altBtn) {
onAltButtonClick(altBtn);
}
private void onAltButtonClick(Button altBtn) {
void onAltButtonClick(Button altBtn) {
if (mAltButtons[0] != altBtn && mAltButtons[1] != altBtn)
throw new IllegalArgumentException("Not called with one of the alt buttons");