Merge "MotionEvent: Don't update private flags when setting flags from Java" into main