From 49a3d157ee2f70aeae040fd3243448eb795a99b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patric=20Karlstr=C3=B6m?= Date: Wed, 13 Jan 2021 15:34:31 +0100 Subject: [PATCH] Simplify code for return value --- .../java/io/lbry/browser/ui/findcontent/ShuffleFragment.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java b/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java index 66a8560f..49686b7c 100644 --- a/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java @@ -684,10 +684,7 @@ public class ShuffleFragment extends BaseFragment { @Override public boolean onDown(MotionEvent e) { - if (control instanceof PlayerView) { - return false; - } - return true; + return control instanceof PlayerView; } @Override