mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 14:45:08 +00:00
Replace lambda with method ref
This commit is contained in:
@@ -94,7 +94,7 @@ public class DeviceSettingsFragment extends PreferenceFragmentCompat {
|
|||||||
final Device device = service.getDevice(deviceId);
|
final Device device = service.getDevice(deviceId);
|
||||||
if (device == null) {
|
if (device == null) {
|
||||||
final FragmentActivity activity = requireActivity();
|
final FragmentActivity activity = requireActivity();
|
||||||
activity.runOnUiThread(() -> activity.finish());
|
activity.runOnUiThread(activity::finish);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<String> plugins = device.getSupportedPlugins();
|
List<String> plugins = device.getSupportedPlugins();
|
||||||
|
Reference in New Issue
Block a user