am ca6de93a: Merge "Fix number counter will keep going after window losed focus."
Merge commit 'ca6de93a9d2f11a18187d9fcd54303813c06094a' into gingerbread-plus-aosp * commit 'ca6de93a9d2f11a18187d9fcd54303813c06094a': Fix number counter will keep going after window losed focus.
This commit is contained in:
committed by
Android Git Automerger
commit
b387571c42
@@ -85,4 +85,12 @@ class NumberPickerButton extends ImageButton {
|
||||
mNumberPicker.cancelDecrement();
|
||||
}
|
||||
}
|
||||
|
||||
public void onWindowFocusChanged(boolean hasWindowFocus) {
|
||||
super.onWindowFocusChanged(hasWindowFocus);
|
||||
if (!hasWindowFocus) {
|
||||
cancelLongpress();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user