Commit ba71f09
committed
Update mainOverlay immediately
Since we don't have a concrete position where previewView will appear anymore, we need to ensure that mainOverlay is at the right position and that we hide previewView until it's ready. As a result, I needed to move hiding previewView and showing mainOverlay to the moment where we change the camera configuration. I also needed to make sure that mainOverlay appears at the old y position of previewView. Once that is ready we can simply show previewView once again when we observe StreamingState.STREAMING.
This also has a side effect of fixing a small issue where you could see previewView show a broken image for a frame when swapping between aspect ratios.1 parent ed3748f commit ba71f09
2 files changed
Lines changed: 18 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
1049 | 1050 | | |
1050 | 1051 | | |
1051 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1052 | 1068 | | |
1053 | 1069 | | |
1054 | 1070 | | |
| |||
1086 | 1102 | | |
1087 | 1103 | | |
1088 | 1104 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | 1105 | | |
1094 | 1106 | | |
1095 | 1107 | | |
| |||
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
130 | 129 | | |
131 | 130 | | |
132 | 131 | | |
133 | | - | |
| 132 | + | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
652 | 651 | | |
653 | 652 | | |
654 | 653 | | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | 666 | | |
676 | 667 | | |
677 | 668 | | |
| |||
0 commit comments