+ function startAutoFocus() {
+ if (!overlay.cam.quirks.hasQuirk(Quirks.NoAutoFocus)) {
+ cam.autoFocus.startAutoFocus()
+ }
+ }
+
+ function stopAutoFocus() {
+ if (!overlay.cam.quirks.hasQuirk(Quirks.NoAutoFocus)) {
+ if (!autoFocusTimer.running) {
+ cam.autoFocus.stopAutoFocus()
+ }
+ }
+ }
+
+ function resetToolBar() {
+ if (toolBar.depth() > 1) {
+ toolBar.pop()
+ }
+ }
+
+ function cameraDeviceChanged() {
+ resetToolBar()
+ }