Commit ec1bb0b5 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Minor code improvement

parent 6ddbf29b
Pipeline #6062 passed with stage
in 1 minute and 58 seconds
......@@ -79,7 +79,7 @@ public class QrCodeConfigurationAssistantActivity extends AssistantActivity {
protected void onResume() {
super.onResume();
launchQrcodeReader();
enableQrcodeReader(true);
}
@Override
......@@ -93,6 +93,7 @@ public class QrCodeConfigurationAssistantActivity extends AssistantActivity {
Core core = LinphoneManager.getCore();
if (core == null) return;
core.setNativePreviewWindowId(enable ? mQrcodeView : null);
core.enableQrcodeVideoPreview(enable);
core.enableVideoPreview(enable);
......@@ -122,12 +123,4 @@ public class QrCodeConfigurationAssistantActivity extends AssistantActivity {
}
core.setVideoDevice(newDevice);
}
private void launchQrcodeReader() {
Core core = LinphoneManager.getCore();
if (core == null) return;
core.setNativePreviewWindowId(mQrcodeView);
enableQrcodeReader(true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment