These three lines should be factored into a method like
```java
protected void moveSelection(int offset) {
```
and called from both places, since if one of these **onClick**s change, you almost certainly need to change the other one.