Permalink
Browse files

Plus/minus buttons don't have focus, cause FC.

  • Loading branch information...
1 parent 71a33bc commit b83f99e973341a6b41769602f3201c07d36baf3b @mhoran mhoran committed Oct 8, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 TimePreference/src/org/bostonandroid/timepreference/TimePreference.java
@@ -168,7 +168,8 @@ protected void onDialogClosed(boolean shouldSave) {
@Override
public void onClick(DialogInterface dialog, int which) {
super.onClick(dialog, which);
- getDialog().getCurrentFocus().clearFocus();
+ if (getDialog().getCurrentFocus() != null)
+ getDialog().getCurrentFocus().clearFocus();
}
private void setTheTime(String s) {

0 comments on commit b83f99e

Please sign in to comment.