Bind method directly
This commit is contained in:
parent
c3b018f59e
commit
69d8812c4a
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user