Fix bad single camera view on Android 13

This commit is contained in:
Davide Quaranta 2023-01-07 18:36:36 +01:00
parent 2f9af2e1f1
commit dfb30bef9e

View File

@ -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();