Browse Source

return false for ridView.setOnTouchListener

NOT TESTED

should allow both click and scrolling?

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 years ago
parent
commit
8e8fd882f9

+ 9 - 9
app/src/main/java/com/nextcloud/talk/controllers/CallController.java

@@ -505,15 +505,15 @@ public class CallController extends BaseController {
             pipVideoView.setOnTouchListener(new SelfVideoTouchListener());
         }
 
-//        gridView.setOnTouchListener(new View.OnTouchListener() {
-//            public boolean onTouch(View v, MotionEvent me) {
-//                int action = me.getActionMasked();
-//                if (action == MotionEvent.ACTION_DOWN) {
-//                    showCallControls();
-//                }
-//                return true;
-//            }
-//        });
+        gridView.setOnTouchListener(new View.OnTouchListener() {
+            public boolean onTouch(View v, MotionEvent me) {
+                int action = me.getActionMasked();
+                if (action == MotionEvent.ACTION_DOWN) {
+                    showCallControls();
+                }
+                return false;
+            }
+        });
 
         initGridAdapter();
     }