Explorar el Código

release camera when widget dispose

flutter-beta
Leon hace 7 años
committed by GitHub
padre
commit
73817d0087
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt

+ 2
- 1
android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt Ver fichero

@@ -88,6 +88,7 @@ class QRView(context: Context, private val registrar: PluginRegistry.Registrar,
}

override fun dispose() {
barcodeView.pause()
}

private inner class CameraRequestPermissionsListener : PluginRegistry.RequestPermissionsResultListener {
@@ -143,4 +144,4 @@ class QRView(context: Context, private val registrar: PluginRegistry.Registrar,
}
}

}
}

Cargando…
Cancelar
Guardar