diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-09-10 16:13:13 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-09-10 16:13:13 -0700 |
commit | ca6de93a9d2f11a18187d9fcd54303813c06094a (patch) | |
tree | d3bdd074ce1c7fd8b22a92dfbd1d05393aaf97a0 /core/java/android | |
parent | 962e482606e3f8f8c0b8e540888eaef56a1c8603 (diff) | |
parent | 3d456a4fc08af036ce94a5f0aa6bc71ee4b5228a (diff) | |
download | frameworks_base-ca6de93a9d2f11a18187d9fcd54303813c06094a.zip frameworks_base-ca6de93a9d2f11a18187d9fcd54303813c06094a.tar.gz frameworks_base-ca6de93a9d2f11a18187d9fcd54303813c06094a.tar.bz2 |
Merge "Fix number counter will keep going after window losed focus."
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/widget/NumberPickerButton.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/widget/NumberPickerButton.java b/core/java/android/widget/NumberPickerButton.java index 1c8579c..292b668 100644 --- a/core/java/android/widget/NumberPickerButton.java +++ b/core/java/android/widget/NumberPickerButton.java @@ -85,4 +85,12 @@ class NumberPickerButton extends ImageButton { mNumberPicker.cancelDecrement(); } } + + public void onWindowFocusChanged(boolean hasWindowFocus) { + super.onWindowFocusChanged(hasWindowFocus); + if (!hasWindowFocus) { + cancelLongpress(); + } + } + } |