Procházet zdrojové kódy

fix that call controls appear on touch when connecting

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe před 3 roky
rodič
revize
9499b8117b

+ 11 - 0
app/src/main/java/com/nextcloud/talk/activities/CallActivity.java

@@ -530,6 +530,17 @@ public class CallActivity extends CallBaseActivity {
             }
         });
 
+        // TODO maybe not necessary if it doesnt disappear
+        binding.conversationRelativeLayout.setOnTouchListener(new View.OnTouchListener() {
+            public boolean onTouch(View v, MotionEvent me) {
+                int action = me.getActionMasked();
+                if (action == MotionEvent.ACTION_DOWN) {
+                    animateCallControls(true, 0);
+                }
+                return false;
+            }
+        });
+
         animateCallControls(true, 0);
 
         initGridAdapter();