瀏覽代碼

fix that call controls appear on touch when connecting

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 年之前
父節點
當前提交
9499b8117b
共有 1 個文件被更改,包括 11 次插入0 次删除
  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();