2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 22:25:08 +00:00

Replace lambda with method ref

This commit is contained in:
Nicolas Fella
2019-02-28 15:46:10 +01:00
parent 2a32eb4bae
commit 0b3bbda6a8

View File

@@ -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<String> plugins = device.getSupportedPlugins();