Merge "Fix number counter will keep going after window losed focus."
This commit is contained in:
@@ -85,4 +85,12 @@ class NumberPickerButton extends ImageButton {
|
|||||||
mNumberPicker.cancelDecrement();
|
mNumberPicker.cancelDecrement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onWindowFocusChanged(boolean hasWindowFocus) {
|
||||||
|
super.onWindowFocusChanged(hasWindowFocus);
|
||||||
|
if (!hasWindowFocus) {
|
||||||
|
cancelLongpress();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user