Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca6de93a authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Code Review
Browse files

Merge "Fix number counter will keep going after window losed focus."

parents 962e4826 3d456a4f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -85,4 +85,12 @@ class NumberPickerButton extends ImageButton {
            mNumberPicker.cancelDecrement();
        }
    }

    public void onWindowFocusChanged(boolean hasWindowFocus) {
        super.onWindowFocusChanged(hasWindowFocus);
        if (!hasWindowFocus) {
            cancelLongpress();
        }
    }

}