Fix Wi-Fi Easy Connect QR code scanner problems

1. When camera area overlaps display cutout, it's onLayout size is 0/0.
   To fix it, use ConstraintLayout to specify width and height in layout file.

2. When scanned a QR code and there is an error, set camera area frame line
   back to unfocused color.

Bug: 124399763
Test: manual test
Change-Id: I7575efd0ccfb58d114acc3dcca6978d68b801f91
This commit is contained in:
Arc Wang
2019-03-26 16:07:02 +08:00
parent c74577eacf
commit 8ae9717226
4 changed files with 12 additions and 57 deletions

View File

@@ -134,6 +134,7 @@ public class WifiDppQrCodeScannerFragment extends WifiDppQrCodeBaseFragment impl
if (msg.arg1 == ARG_RESTART_CAMERA) {
mProgressBar.setVisibility(View.INVISIBLE);
mDecorateView.setFocused(false);
restartCamera();
}
break;