Browse Source

fix that call controls appear on touch when connecting

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 years ago
parent
commit
9499b8117b
1 changed files with 11 additions and 0 deletions
  1. 11 0
      app/src/main/java/com/nextcloud/talk/activities/CallActivity.java

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