Ver a proveniência

fix black screen after change screen orientation

but need to fix preview stretching after change screen orientation
flutter-beta
Leon há 7 anos
committed by GitHub
ascendente
cometimento
66e811b04e
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 4 adições e 3 eliminações
  1. +4
    -3
      android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt

+ 4
- 3
android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt Ver ficheiro

@@ -43,8 +43,6 @@ class QRView(context: Context, private val registrar: PluginRegistry.Registrar,
}
)

init()

activity.application.registerActivityLifecycleCallbacks(
object : Application.ActivityLifecycleCallbacks{
override fun onActivityPaused(p0: Activity?) {
@@ -84,7 +82,10 @@ class QRView(context: Context, private val registrar: PluginRegistry.Registrar,
}

override fun getView(): View {
return barcodeView
barcodeView.pause()
return barcodeView.apply {
init()
}
}

override fun dispose() {


Carregando…
Cancelar
Guardar