Fix bad single camera view on Android 13
This commit is contained in:
parent
2f9af2e1f1
commit
dfb30bef9e
@ -76,7 +76,8 @@ public class SurveillanceFragment extends Fragment {
|
|||||||
1.0f
|
1.0f
|
||||||
);
|
);
|
||||||
|
|
||||||
hiddenLayoutParams = new LinearLayout.LayoutParams(0, 0);
|
// 1,1 instead of 0,0 because the latter doesn't work on android 13+
|
||||||
|
hiddenLayoutParams = new LinearLayout.LayoutParams(1, 1);
|
||||||
|
|
||||||
binding = FragmentSurveillanceBinding.inflate(inflater, container, false);
|
binding = FragmentSurveillanceBinding.inflate(inflater, container, false);
|
||||||
return binding.getRoot();
|
return binding.getRoot();
|
||||||
|
Loading…
Reference in New Issue
Block a user