From b50fd73a06d3f8b456369658384b04e379ae0ccd Mon Sep 17 00:00:00 2001
From: alussier-cullen <alexander.lussier-cullen@savoirfairelinux.com>
Date: Fri, 17 Mar 2023 10:11:39 -0400
Subject: [PATCH] Call: fix buttons disappearing

GitLab: #1127
GitLab: #1632

Change-Id: I57f340aeb71a7df00d47f86c66eb5f21f5e35601
---
 .../app/src/main/res/layout/frag_call.xml     | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/jami-android/app/src/main/res/layout/frag_call.xml b/jami-android/app/src/main/res/layout/frag_call.xml
index 79b847a65..3a1e3a5f3 100644
--- a/jami-android/app/src/main/res/layout/frag_call.xml
+++ b/jami-android/app/src/main/res/layout/frag_call.xml
@@ -389,7 +389,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Sound button -->
                     <LinearLayout
                         android:id="@+id/sound_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -425,7 +425,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Mic button -->
                     <LinearLayout
                         android:id="@+id/microphone_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -461,7 +461,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Hangup button -->
                     <LinearLayout
                         android:id="@+id/hng_up_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -496,7 +496,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Camera switch button -->
                     <LinearLayout
                         android:id="@+id/videocam_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -531,7 +531,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Camera switch button -->
                     <LinearLayout
                         android:id="@+id/Flip_cam_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -565,7 +565,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Add participant button -->
                     <LinearLayout
                         android:id="@+id/add_participant_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -600,7 +600,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Screen Share button -->
                     <LinearLayout
                         android:id="@+id/sharescreen_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -635,7 +635,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Dialpad button -->
                     <LinearLayout
                         android:id="@+id/dialpad_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -672,7 +672,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Raise Hand button -->
                     <LinearLayout
                         android:id="@+id/raiseHand_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
@@ -706,7 +706,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     <!-- Plugins list button -->
                     <LinearLayout
                         android:id="@+id/plugins_btn_container"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_rowWeight="1"
                         android:layout_columnWeight="1"
-- 
GitLab