From dfb30bef9eeedb3451fd90fbe88f7b7c5b7bb0f9 Mon Sep 17 00:00:00 2001 From: Davide Quaranta <30431538+davquar@users.noreply.github.com> Date: Sat, 7 Jan 2023 18:36:36 +0100 Subject: [PATCH] Fix bad single camera view on Android 13 --- .../java/it/danieleverducci/ojo/ui/SurveillanceFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java b/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java index a6141a8..3b52164 100644 --- a/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java +++ b/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java @@ -76,7 +76,8 @@ public class SurveillanceFragment extends Fragment { 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); return binding.getRoot();