From 0b3bbda6a827ca9aa996508da0c9c2ad34185e1c Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 28 Feb 2019 15:46:10 +0100 Subject: [PATCH] Replace lambda with method ref --- .../kde/kdeconnect/UserInterface/DeviceSettingsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/UserInterface/DeviceSettingsFragment.java b/src/org/kde/kdeconnect/UserInterface/DeviceSettingsFragment.java index 45f743bc..ab88181a 100644 --- a/src/org/kde/kdeconnect/UserInterface/DeviceSettingsFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/DeviceSettingsFragment.java @@ -94,7 +94,7 @@ public class DeviceSettingsFragment extends PreferenceFragmentCompat { final Device device = service.getDevice(deviceId); if (device == null) { final FragmentActivity activity = requireActivity(); - activity.runOnUiThread(() -> activity.finish()); + activity.runOnUiThread(activity::finish); return; } List plugins = device.getSupportedPlugins();