From 4ebf83fce657c96238d898fe383923cc7d1b0ffe Mon Sep 17 00:00:00 2001 From: eho Date: Tue, 22 May 2018 11:04:13 +0200 Subject: [PATCH] ui:preview Simplified lambda expressions. --- .../owncloud/android/ui/preview/PreviewImageFragment.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java index 2fd3227b32..524c890b5e 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -186,13 +186,9 @@ public class PreviewImageFragment extends FileFragment { mImageView = view.findViewById(R.id.image); mImageView.setVisibility(View.GONE); - view.setOnClickListener(v -> { - togglePreviewImageFullScreen(); - }); + view.setOnClickListener(v -> togglePreviewImageFullScreen()); - mImageView.setOnClickListener(v -> { - togglePreviewImageFullScreen(); - }); + mImageView.setOnClickListener(v -> togglePreviewImageFullScreen()); mMultiView = view.findViewById(R.id.multi_view);